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

Published Sep 2, 2026
·
Updated

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 Software

1 affected component
astro Astro<7.2.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Astro to a version that resolves this vulnerability.

    Fixed in 7.2.4

Event History

Sep 2, 2026
CVE Published
via MITRE·04:24 PM
Data Sourced
via MITRE·04:24 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are exposed to this bypass?

Applications using Astro before 7.2.4 with a configured non-root base path are affected when their middleware authorizes requests by inspecting context.url.pathname for base-prefixed routes. The described example uses a base of "/app".

2

What does an attacker need to exploit it?

An unauthenticated remote attacker needs to send a request whose pathname begins with the configured base string but does not end at a path-segment boundary, such as "/appX/admin" when the base is "/app". This can cause middleware to see the attacker-controlled pathname while routing resolves the request to a protected route.

3

Are default Astro deployments affected?

The issue requires a configured non-root base path. Deployments using the root base are not described as affected.

4

How can I determine whether my application may already be vulnerable?

Review the Astro version, the configured base path, and middleware authorization logic. An application may be vulnerable if it runs a version earlier than 7.2.4, uses a non-root base, and makes authorization decisions from context.url.pathname.

5

What should be done to remediate the issue?

Upgrade Astro to version 7.2.4. If upgrading cannot occur immediately, review and avoid relying solely on context.url.pathname-based authorization for base-prefixed routes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203