CVE-2026-84376
Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base
Overview
Description
Astro is a web framework for content-driven websites. Prior to 7.2.4, Astro stripped a configured non-root base path from request pathnames using a string-prefix check without verifying a path-segment boundary. With base "/app", a request to "/appX/admin" resolved internally to the protected "/admin" route while middleware observed "/appX/admin" in context.url.pathname. In applications that authorize base-prefixed routes by inspecting context.url.pathname, an unauthenticated remote attacker could bypass pathname-based middleware authorization and reach protected routes. This issue is fixed in version 7.2.4.
Source: OX vulnerability database
Severity
MEDIUM
No CVSS vector in the source. Severity comes from the advisory.
Weakness: CWE-187
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | astro | <7.2.4 | 7.2.4 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/withastro/astro
- github.com https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527
- github.com https://github.com/withastro/astro/pull/17701
- github.com https://github.com/withastro/astro/releases/tag/astro@7.2.4
- github.com https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-84376
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.