CVE-2026-126364 Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Astro is a web framework for content-driven websites. From 5.14.3 until 7.4.7, Astro's /_image endpoint compared the requested local-image path with the build output directory without preserving case on case-sensitive filesystems. A sibling directory whose path differed from the output directory only by letter case could therefore pass the containment check, allowing an unauthenticated requester to read image files accepted by the image service from outside the output directory. Exploitation required on-demand rendering with the @astrojs/node adapter, a case-sensitive filesystem, and a preexisting case-variant sibling directory; ordinary traversal to unrelated paths was already rejected. This issue is fixed in Astro version 7.4.7.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @astrojs/node(npm) | <= 11.1.11 | after 11.1.11 | Fixed |
| npm astro(npm) | >= 5.14.3, < 7.4.7; >= 5.14.3, <= 7.4.6 | 7.4.7 | Fixed |
| withastro astro | = >= 5.14.3, < 7.4.7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| withastro astro | = >= 5.14.3, < 7.4.7 | No fix listed |
| @astrojs/node(npm) | <= 11.1.11 | No fix listed |
| npm astro(npm) | >= 5.14.3, <= 7.4.6 | No fix listed |
| npm astro(npm) | >= 5.14.3, < 7.4.7 | 7.4.7 |
References
- https://github.com/withastro/astro/security/advisories/GHSA-r3h5-4585-7x3w vendor-advisory
- https://github.com/withastro/astro/commit/7da442bb286e0c29e1c9e1add6727b7cbf434f1a patch
- https://github.com/withastro/astro/releases/tag/astro@7.4.7
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-124748 third-party-advisory