Astro: Unauthenticated Path Override via `x-astro-path` / `x_astro_path`
Description
Astro is a web framework. Prior to version 10.0.2, the @astrojs/vercel serverless entrypoint reads the x-astro-path header and x_astro_path query parameter to rewrite the internal request path, with no authentication whatsoever. On deployments without Edge Middleware, this lets anyone bypass Vercel's platform-level path restrictions entirely. The override preserves the original HTTP method and body, so this isn't limited to GET. POST, PUT, DELETE all land on the rewritten path. A Firewall rule blocking /admin/* does nothing when the request comes in as POST /api/health?x_astro_path=/admin/delete-user. This issue has been patched in version 10.0.2.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@astrojs/vercelnpm | < 10.0.2 | 10.0.2 |
Affected products
2Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-f82v-jwr5-mffwghsaADVISORY
- github.com/advisories/GHSA-mr6q-rp88-fx84ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-33768ghsaADVISORY
- github.com/withastro/astro/commit/335a204161f5a7293c128db570901d4f8639c6edghsax_refsource_MISCWEB
- github.com/withastro/astro/pull/15959ghsax_refsource_MISCWEB
- github.com/withastro/astro/releases/tag/%40astrojs%2Fvercel%4010.0.2mitrex_refsource_MISC
- github.com/withastro/astro/releases/tag/@astrojs/vercel@10.0.2ghsaWEB
- github.com/withastro/astro/security/advisories/GHSA-mr6q-rp88-fx84ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.