CVE-2026-33768 Astro: Unauthenticated Path Override via `x-astro-path` / `x_astro_path`

Medium 6.5 Published Updated

Attackers can bypass Vercel path restrictions and access protected endpoints by manipulating headers or query parameters in unauthenticated requests.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-33768?

CVE-2026-33768 is a medium-severity missing authorization vulnerability in withastro astro, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-862, CWE-441

Which versions are affected by CVE-2026-33768?

2 open source packages ship an affected version, including @astrojs/vercel. It affects 1 product.

PackageAffectedFixed in
@astrojs/vercel npmAll versions10.0.2
@astrojs/vercel npmAll versions10.0.2

Products include Astro \@Astrojs\/Vercel.

How do I fix CVE-2026-33768?

Upgrade @astrojs/vercel to 10.0.2 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-33768 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33768 exists.

Sources

Also known as GHSA-mr6q-rp88-fx84.

Is CVE-2026-33768 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free