Astro
Astro: Unauthenticated Path Override via `x-astro-path` / `x_astro_path`
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 10.0.2
Fixed in 10.0.2
Mitigation
Upgrade astro to 10.0.2 or later.
References
- Vendor advisory github.com/withastro/astro/security/advisories…
- Patch github.com/withastro/astro/pull/15959
- Patch github.com/withastro/astro/commit/335a204161f5…
1 more
- Release notes github.com/withastro/astro/releases/tag/%40ast…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.