Technical impact
Astro’s /_image endpoint performs a containment check against the build output directory without preserving case on case‑sensitive filesystems. A sibling directory whose name differs only by letter case can pass this check, enabling an unauthenticated requester to read any image file that the service accepts but that resides outside the intended output directory. The vulnerability does not allow code execution or disclosure of metadata beyond the requested files. It represents an information disclosure flaw.
Affected Systems
The flaw affects Astro builds using the @astrojs/node adapter from version 5.14.3 through 7.4.7. It requires that the deployment run on a case‑sensitive filesystem and that a case‑variant sibling directory of the output directory already exists. Regular directory traversal to unrelated paths is rejected by the system, so the vulnerability is limited to files in such sibling directories.
Risk and Exploitability
The CVSS score is 6.3, reflecting a moderate severity. The EPSS score is less than 1 %, indicating a very low probability of exploitation in the wild, and the flaw is not listed in CISA’s KEV catalog. Exploitation requires on‑demand rendering enabled by @astrojs/node, a case‑sensitive filesystem, and the presence of a prior case‑variant sibling directory. Attackers can retrieve arbitrary image files in that sibling directory by requesting them through the /_image endpoint, but cannot traverse to other parts of the filesystem or gain code execution authority.
Github GHSA