CVE-2026-84376: Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base
Astro stripped a configured base path from request pathnames using a string-prefix check that did not verify a path-segment boundary. With base: "/app", a request to /appX/admin was treated as being under the base and resolved internally to the /admin route, while middleware still observed the public pathname /appX/admin. Middleware that authorizes routes by inspecting context.url.pathname could therefore be bypassed.
References
- github.com/advisories/GHSA-376h-93r7-7g6f
- github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527
- github.com/withastro/astro/pull/17701
- github.com/withastro/astro/releases/tag/astro@7.2.4
- github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f
- nvd.nist.gov/vuln/detail/CVE-2026-84376
Code Behaviors & Features
Detect and mitigate CVE-2026-84376 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →