Read the docs

Astro image endpoint reads files outside the output directory

Priority LOW 28CWE-178Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00375 31st percentileScored 2026-11-16
Fix Fixed astro (withastro): 7.4.7astro (npm): 7.4.7

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

VendorProductAffected versionsFixed inStatusSource
withastroastro5.14.3 to before 7.4.77.4.7Patch availableCNA
—@astrojs/node (npm)up to 11.1.11—No fix listedGHSA-r3h5-4585-7x3w
—astro (npm)5.14.3 to before 7.4.77.4.7Patch availableGHSA-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

  1. 2026-11-12 Threatist record created from CVE-2026-126364
  2. 2026-11-13 CISA SSVC decision points changed
  3. 2026-11-13 Alias added: GHSA-r3h5-4585-7x3w
  4. 2026-11-13 Fix available: npm/[email protected] · GHSA-r3h5-4585-7x3w
  5. 2026-11-13 CVSS score added · GHSA-r3h5-4585-7x3w
  6. 2026-11-13 Weakness changed · GHSA-r3h5-4585-7x3w
  7. 2026-11-13 5 new references · GHSA-r3h5-4585-7x3w

References

  • 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
See all 48 →

Sources