# 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:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.43% (percentile 29, 2026-11-28)
- **CWE:** CWE-22, CWE-178
- **Aliases:** GHSA-r3h5-4585-7x3w
- **Published:** 2026-11-12T22:33:17.635Z
- **Modified:** 2026-11-17T22:17:21.217Z

## Who should check

- Projects that depend on npm package @astrojs/node (\<= 11.1.11)
- Projects that depend on npm package astro (\>= 5.14.3, \<= 7.4.6)
- Anyone running withastro astro \>= 5.14.3, \< 7.4.7

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

## Affected and fixed versions

- npm `@astrojs/node`: affected \<= 11.1.11; fixed no fix listed yet (ghsa)
- npm `astro`: affected \>= 5.14.3, \<= 7.4.6; fixed 7.4.7 (ghsa)
- withastro astro: \>= 5.14.3, \< 7.4.7 (cvelist)

## Technologies

npm packages

## Mitigation

- Upgrade astro to 7.4.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-126364. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-126364.md
Affected: @astrojs/node <= 11.1.11; astro >= 5.14.3, <= 7.4.6
Fixed in: 7.4.7

Steps:
1. Search this machine and project for @astrojs/node (npm), astro (npm), withastro astro: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-126364 being exploited?

There is no confirmed exploitation: CVE-2026-126364 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-126364?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-126364?

@astrojs/node \<= 11.1.11; astro \>= 5.14.3, \<= 7.4.6.

### Is there a fix for CVE-2026-126364?

Yes. Fixed in 7.4.7. Upgrade astro to 7.4.7 or later.

### How do I check if I'm affected by CVE-2026-126364?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-126364>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-r3h5-4585-7x3w> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-126364> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-126364>
