Servers and applications
GHSA-3285-4h5r-3q5x
Authorization bypass in middleware via double-encoded action names
- Severity
- Medium 4.8
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Fixed in
- 7.4.14
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N- Sources
- Project advisories (GitHub)
Description
Astro Actions let middleware inspect an incoming action with getActionContext(), including its action.name, so that some actions can be refused before they run. The name given to middleware was decoded one time fewer than the name Astro used to look up and run the action. A name that was percent-encoded a second time, such as %2561dmin.deleteUser, was shown to middleware as %61dmin.deleteUser but ran admin.deleteUser.
For example, this middleware:
refused POST /?_action=admin.deleteUser but let POST /?_action=%2561dmin.deleteUser through, and the admin.deleteUser action ran. RPC actions could be reached the same way with a path such as /_actions/%25/_actions/%2561dmin.deleteUser, which stops Astro's path decoding early.
Bypass of authorization rules in middleware, but only in on-demand rendered applications that refuse actions in middleware by comparing action.name against a denylist, an exact name, or a prefix. Rules that only allow a fixed list of names are not affected.
Workarounds
Upgrade to astro 7.4.14 or later. Before upgrading, check authorization inside the action handler, or refuse actions in middleware only by allowing a fixed list of names.
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)
- 12,020,872npm, 29 Nov 2026
- GitHub stars
- 64,305GitHub, 29 Nov 2026
- Forks
- 3,943GitHub, 29 Nov 2026
- Latest release
- @astrojs/[email protected]GitHub, 29 Nov 2026
- Released
- 18 Nov 2026GitHub
- First published on GitHub
- 15 Mar 2021GitHub
Vulnerabilities in Astro
- In our list
- 35
- Published in the last 12 months
- 22
- Critical, last 12 months
- 1
- High, last 12 months
- 2
- Known exploited
- 0
- GHSA-c335-jqf9-8wmcReflected XSS via data URIs with an allow-listed host in the image endpointMedium 6.1 2 Dec 2026
- GHSA-r7x2-725f-h4m9XSS via unescaped object values in JSX and MDX elementsMedium 6.1 2 Dec 2026
- 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
- CVE-2026-126364Astro: Image 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
References
- GitHub Advisory Database https://github.com/advisories/GHSA-3285-4h5r-3q5x
- github.com https://github.com/withastro/astro/security/advisories/GHSA-3285-4h5r-3q5x