# CVE-2026-84376: Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 49% of CVEs (2026-11-30)
- Published: 2026-09-02T16:24:23.799Z
- Modified: 2026-09-09T21:04:42.813Z
- Also known as: GHSA-376h-93r7-7g6f
- Weaknesses: CWE-187
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- withastro astro: < 7.2.4
- astro (npm): before 7.2.4

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f> (web)
- <https://github.com/withastro/astro/pull/17701> (web)
- <https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527> (web)
- <https://github.com/withastro/astro/releases/tag/astro@7.2.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84376> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-84376](https://www.cve.org/CVERecord?id=CVE-2026-84376), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-376h-93r7-7g6f](https://github.com/advisories/GHSA-376h-93r7-7g6f), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-84376](https://nvd.nist.gov/vuln/detail/CVE-2026-84376), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-84376 · Whole record: https://cve.day/CVE-2026-84376.json · Rebuilt by cve.day 2026-11-25T22:59:36.131Z
