All vulnerabilities

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:

From withastro/astro's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AstroServers and applications · github:withastro/astro
  • Version 6.4.7

About Astro

The web framework for content-driven websites.

From its GitHub repository.
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

References