CVE-2026-126364 Path traversal in astro
Unauthenticated attackers can read image files from case-variant sibling directories on case-sensitive filesystems behind Astro's image endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Harmful if only installed
- No
- Needs a specific call
- No
- Fix
- None listed
What is CVE-2026-126364?
CVE-2026-126364 is a medium-severity path traversal vulnerability in withastro astro, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-126364?
Only installations with a non-default setting turned on are exposed.
How do I fix CVE-2026-126364?
No fix has been published for CVE-2026-126364 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-126364 being exploited?
There is no known exploitation of CVE-2026-126364 in the wild and no public exploit code.
Sources
Also known as GHSA-r3h5-4585-7x3w.