Servers and applications
CVE-2026-59731
Astro 6.4.7 Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch
- Severity
- High 8.2
- Published
- 1 Jul 2026
- Last changed
- 7 Jul 2026
- Added to UpHeron
- 3 Nov 2026
- Exploit chance
- 0.3% in the next 30 daysHigher than 26% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- CWE-647
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N- Also known as
- GHSA-vj59-8hwv-xxmv
- Sources
- Project advisories (GitHub)
Description
Astro 6.4.7 appears to reintroduce a middleware authorization bypass pattern when a request path is encoded more deeply than the newly introduced iterative URL decoder's maximum decoding depth.
The issue occurs because Astro performs authorization decisions on a partially decoded pathname after reaching a decoding iteration cap, while later route matching logic performs an additional decodeURI() operation and resolves the request to a protected route.
As a result, middleware and route matching may operate on different pathname representations, enabling authorization bypasses under specific application patterns.
Potential CWE: CWE-647 – Use of Non-Canonical URL Paths for Authorization Decisions
Middleware authorization sees:
Later rewrite route matching sees:
This discrepancy allows a request that bypasses middleware checks to subsequently resolve to a protected route.
PR #16967 introduced iterative URI decoding:
Affected software
| Software | Affected versions |
|---|---|
AstroServers and applications · github:withastro/astro |
|
About Astro
The web framework for content-driven websites.
- Developers who used it in the past year
- 4.5%Stack Overflow Developer Survey 2025, 2025
- Weekly downloads (npm)
- 11,910,147npm, 15 Nov 2026
- GitHub stars
- 63,954GitHub, 15 Nov 2026
- Forks
- 3,922GitHub, 15 Nov 2026
- Latest release
- @astrojs/[email protected]GitHub, 15 Nov 2026
- Released
- 13 Nov 2026GitHub
- First published on GitHub
- 15 Mar 2021GitHub
Vulnerabilities in Astro
- In our list
- 34
- Published in the last 12 months
- 21
- Critical, last 12 months
- 1
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-126365Astro: XSS via unescaped code for unsupported languages in @astrojs/prismMedium 5.4 12 Nov 2026
- CVE-2026-126363Astro: Reflected XSS via unescaped slot names in @astrojs/solid-jsLow 2.3 12 Nov 2026
- CVE-2026-126362Astro: Reflected XSS via unescaped slot names in @astrojs/svelteLow 2.3 12 Nov 2026
- GHSA-r3h5-4585-7x3wImage endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystemsLow 9 Nov 2026
- CVE-2026-126364Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystemsMedium 6.3 9 Nov 2026
- GHSA-mh32-jxcr-mh9fXSS via attribute injection in dynamic tag namesLow 9 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-59731
- GitHub Advisory Database https://github.com/advisories/GHSA-vj59-8hwv-xxmv
- github.com https://github.com/withastro/astro/security/advisories/GHSA-vj59-8hwv-xxmv