Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-84376 EUVD-2026-70213GHSA-376h-93r7-7g6f

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

Published Sep 2, 2026 · Updated Sep 4, 2026 · 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.

Affected products

VendorProductAffectedFixed
withastro astro < 7.2.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm astro < 7.2.4 7.2.4 GHSA-376h-93r7-7g6f

References