Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade astro to version 6.4.8 or higher.
astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
Affected versions of this package are vulnerable to Use of Non-Canonical URL Paths for Authorization Decisions in validateAndDecodePathname and rewrite routing in findRouteToRewrite. An attacker can reach protected routes by sending an over-encoded URL whose path is only partially decoded for middleware checks but then decoded again during route matching. This lets unauthenticated requests slip past pathname-based middleware authorization and still resolve to routes such as /admin or /api/admin. The result is unauthorized access to protected pages or APIs that the application intended to block.
Notes
context.url.pathname and then handing the request back into Astro’s rewrite flow with next(context.url), so middleware and routing can see different pathname representations for the same request.