Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
CVE-2026-126364
Summary The /image endpoint used by the @astrojs/node adapter checks that a requested local image is inside the build output directory before reading it from disk. That check compared paths case-insensitively. On case-sensitive filesystems (such as Linux), a directory whose path differs from the output directory only by letter case is a different directory, but it passed the check. For example, with the client output directory at /srv/app/dist/client/, a request such as: text /image?href=/../../DIST/client/secret.png&w=32&f=png resolved to /srv/app/DIST/client/secret.png and was served, even though that file is outside the output directory. Impact An unauthenticated attacker can read image files from outside the output directory, but only when all of the following are true: The site uses on-demand rendering with the @astrojs/node adapter. The server runs on a case-sensitive filesystem. A directory exists whose path matches the output directory except for letter case (for example DIST/client next to dist/client). Such a layout is unusual, and the attacker cannot create it. Only files the image service accepts can be read. Raster images are returned after resizing; SVG files are…
Assessment
- CVSS
- 6.3 (v4.0)
- Severity
- Medium
- EPSS
- 0.00375% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 13 November 2026
- Last updated
- 13 November 2026
- Affected
- @astrojs/node · astro
- Weakness
- CWE-178, CWE-22
CVSS vectorCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
At the source
References
- https://github.com/withastro/astro/security/advisories/GHSA-r3h5-4585-7x3w
- https://nvd.nist.gov/vuln/detail/CVE-2026-126364
- https://github.com/withastro/astro/commit/7da442bb286e0c29e1c9e1add6727b7cbf434f1a
- https://github.com/withastro/astro/releases/tag/astro@7.4.7
- https://github.com/advisories/GHSA-r3h5-4585-7x3w
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-126364