Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2026-84376

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

September 8, 2026

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 →

Affected versions

All versions before 7.2.4

Fixed versions

  • 7.2.4

Solution

Upgrade to version 7.2.4 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-187: Partial String Comparison

Source file

npm/astro/CVE-2026-84376.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:11 +0000.