Astro image endpoint reads files outside the output directory
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
Astro from 5.14.3 before 7.4.7 is affected, and @astrojs/node is affected through 11.1.11. The /_image endpoint compares the requested image path with the output directory without preserving case on case-sensitive filesystems (CWE-178). An unauthenticated remote attacker can read image files accepted by the image service from a case-variant sibling directory outside the output directory, when the site uses on-demand rendering with the @astrojs/node adapter.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| withastro | astro | 5.14.3 to before 7.4.7 | 7.4.7 | Patch available | CNA |
| — | @astrojs/node (npm) | up to 11.1.11 | — | No fix listed | GHSA-r3h5-4585-7x3w |
| — | astro (npm) | 5.14.3 to before 7.4.7 | 7.4.7 | Patch available | GHSA-r3h5-4585-7x3w |
- astro Vendorwithastro Affected 5.14.3 to before 7.4.7 Fixed in 7.4.7 Patch available CNA
- @astrojs/node (npm) Vendor— Affected up to 11.1.11 Fixed in — No fix listed GHSA-r3h5-4585-7x3w
- astro (npm) Vendor— Affected 5.14.3 to before 7.4.7 Fixed in 7.4.7 Patch available GHSA-r3h5-4585-7x3w
Remediation
Upgrade astro to version 7.4.7, which fixes the flaw. The sources list no fixed version for @astrojs/node.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA astro (withastro) Fixed in 7.4.7
- Fix · GHSA-r3h5-4585-7x3w astro (npm) Fixed in 7.4.7 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126364
- 2026-11-13 CISA SSVC decision points changed
- 2026-11-13 Alias added: GHSA-r3h5-4585-7x3w
- 2026-11-13 Fix available: npm/[email protected] · GHSA-r3h5-4585-7x3w
- 2026-11-13 CVSS score added · GHSA-r3h5-4585-7x3w
- 2026-11-13 Weakness changed · GHSA-r3h5-4585-7x3w
- 2026-11-13 5 new references · GHSA-r3h5-4585-7x3w
References
More withastro vulnerabilities
- TI-2026-26147 Astro: Unauthenticated Path Override via `x-astro-path` / `x_astro_path` CVSS 3.1CRITICAL 9.1
- TI-2026-42600 Astro 6.4.7 Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch CVSS 3.1HIGH 8.2
- TI-2024-37142 Server source code is exposed to the public if sourcemaps are enabled CVSS 4.0HIGH 7.8
- TI-2025-35987 Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint CVSS 3.1HIGH 7.2
- TI-2025-34958 Unauthorized third-party images in Astro’s _image endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-51542 Astro: Unauthenticated path override in the @astrojs/vercel ISR function CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-126364 · CVE Program
- CVE-2026-126364 · NVD
- FIRST EPSS
- GHSA-r3h5-4585-7x3w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences