CVE-2026-84376 Details
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.
A vulnerability in Astro versions through 7.2.3 allows unauthorized access to protected routes by bypassing middleware authorization. The issue arises from the framework's method of stripping non-root base paths from request URLs. This process relied on a simple prefix check that failed to consider path-segment boundaries. As a result, requests to paths like '/appX/admin' were incorrectly routed to the '/admin' endpoint while the middleware still recognized the original path, creating a mismatch that could be exploited. This vulnerability affects applications that use base-prefixed routes and authorize them through the 'context.url.pathname' variable.
Users can upgrade to Astro version 7.2.4 or later, where this vulnerability is fixed. As an additional step, avoid relying solely on prefix checks of 'context.url.pathname' for authorization, or reject requests whose pathname does not begin with the configured base followed by a path-segment boundary.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 2, 2026CISA-ADP
Assessed Sep 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527 | [email protected] | Source CodeVendor |
| https://github.com/withastro/astro/pull/17701 | [email protected] | Issue TrackingVendor |
| https://github.com/withastro/astro/releases/tag/[email protected] | [email protected] | Release NotesVendor |
| https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-187 | Partial String Comparison | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Astro | <= 7.2.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 4, 2026 | CVE Modified | CISA-ADP |
| Sep 2, 2026 | New CVE Received | [email protected] |
Volerion