Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
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.
Recorded fixes — astro: 7.4.7. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 5.14.3 before 7.4.7Semantic versions | 7.4.7 |
Version evidence: OSV · GHSA-r3h5-4585-7x3w
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "5.14.3"
},
{
"fixed": "7.4.7"
}
],
"type": "SEMVER"
}
],
"versions": []
}