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.
Published: 2026-09-02
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Astro strips a configured non‑root base path from request pathnames using a simple string‑prefix test that fails to verify a path‑segment boundary. This is a CWE‑187 (Partial Comparison) flaw. With a base of "/app", a request to "/appX/admin" is internally resolved to the protected "/admin" route while the middleware still observes the original pathname. This flaw lets an unauthenticated attacker publicly request a crafted URL and bypass pathname‑based middleware, gaining access to routes that should be protected.

Affected Systems

The vulnerability affects all installations of the Astro web framework produced by withastro:astro that are running a version earlier than 7.2.4 and use a configured base path. Deployments of Astro on any content‑driven site that rely on path‑based authorization middleware are susceptible.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity, and the flaw can be exploited remotely via normal HTTP requests without requiring privileged state. The EPSS score is not available, so the current exploitation likelihood is unknown, and the vulnerability is not listed in the CISA KEV catalog. An attacker only needs to supply a malicious URL containing the missing slash to trigger the bypass, making this a readily actionable attack vector for public‑facing applications.

Generated by OpenCVE AI on September 3, 2026 at 11:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Astro to version 7.2.4 or newer, where the base‑path stripping logic correctly checks for a path‑segment boundary.
  • If an upgrade cannot be performed immediately, modify or replace your pathname‑based middleware so that it validates the fully resolved request path rather than the raw request pathname, ensuring that requests such as "/appX/admin" are rejected.
  • Disable or remove the configuration of a non‑root base path while you apply the upgrade or patch.

Generated by OpenCVE AI on September 3, 2026 at 11:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 11:15:00 +0000

Type Values Removed Values Added
First Time appeared Withastro
Withastro astro
Vendors & Products Withastro
Withastro astro

Wed, 02 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base
Weaknesses CWE-187
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-02T16:24:23.799Z

Reserved: 2026-09-01T16:27:58.129Z

Link: CVE-2026-84376

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-02T17:18:00.497

Modified: 2026-09-02T17:18:00.497

Link: CVE-2026-84376

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T11:30:03Z

Weaknesses
  • CWE-187

    Partial String Comparison