# 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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-11-12T22:33:17.635Z
- Modified: 2026-11-17T22:17:21.217Z
- Also known as: GHSA-r3h5-4585-7x3w
- Weaknesses: CWE-22, CWE-178
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- withastro astro: >= 5.14.3, < 7.4.7
- @astrojs/node (npm): up to 11.1.11
- astro (npm): from 5.14.3 before 7.4.7

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-r3h5-4585-7x3w> (web)
- <https://github.com/withastro/astro/commit/7da442bb286e0c29e1c9e1add6727b7cbf434f1a> (web)
- <https://github.com/withastro/astro/releases/tag/astro@7.4.7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126364> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-126364](https://www.cve.org/CVERecord?id=CVE-2026-126364), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-r3h5-4585-7x3w](https://github.com/advisories/GHSA-r3h5-4585-7x3w), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-126364](https://nvd.nist.gov/vuln/detail/CVE-2026-126364), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-126364 · Whole record: https://cve.day/CVE-2026-126364.json · Rebuilt by cve.day 2026-11-25T22:59:50.580Z
