CVE Feed
6.3 Medium

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

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
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-126364