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

Published Nov 12, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Astro to version 7.4.7 or later to apply the fixed containment check.
  • If an upgrade is not yet possible, eliminate case‑variant sibling directories or rename them to avoid the containment bypass.
  • Disable the @astrojs/node adapter or restrict /_image endpoint access to trusted users until the patch is applied.

Generated by OpenCVE AI on November 13, 2026 at 16:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r3h5-4585-7x3w Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Low

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Astro
Astro astro
Withastro
Withastro astro
Vendors & Products Astro
Astro astro
Withastro
Withastro astro
Type Values Removed Values Added
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.
Title Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
Weaknesses CWE-178
CWE-22
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}

Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 13, 2026, 12:37 AM
Reserved
Nov 10, 2026, 9:12 PM
Status
Awaiting Analysis
Published
Nov 13, 2026, 12:20 AM
Modified
Nov 17, 2026, 10:17 PM
Severity
Low
Public date
Nov 12, 2026, 10:33 PM