CVE-2026-84376 Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm astro(npm) | < 7.2.4; <= 7.2.3 | 7.2.4 | Fixed |
| withastro astro | = < 7.2.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| withastro astro | = < 7.2.4 | No fix listed |
| npm astro(npm) | <= 7.2.3 | No fix listed |
| npm astro(npm) | < 7.2.4 | 7.2.4 |
References
- https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f vendor-advisory
- https://github.com/withastro/astro/pull/17701 patch
- https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527 patch
- https://github.com/withastro/astro/releases/tag/astro@7.2.4
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-70213 third-party-advisory