astro is vulnerable to Authorization Bypass
59
Medium Risk
Astro derives the routing and middleware pathname for domain-based i18n requests without applying the duplicate-slash collapsing and over-encoding validation that are used on the standard request path. An unauthenticated attacker can send a request with duplicate leading slashes or multi-level percent-encoding to a domain-mapped host so that middleware or edge authorization evaluates a different path than the one that is actually routed and rendered. On deployments that rely on path-based authorization this allows those checks to be bypassed and protected routes to be reached. The fix normalizes the public pathname consistently and rejects over-encoded paths before routing runs.
You are affected if you are using a version that falls within the vulnerable range and you use domain-based i18n routing together with middleware or edge path-based authorization.
astro is vulnerable to Authorization Bypass in versions 6.4.4 - 7.1.0.
Upgrade the astro library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant