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
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Astro to a version that resolves this vulnerability.

    Fixed in 7.4.7

Event History

Nov 12, 2026
CVE Published
via MITRE·10:33 PM
Data Sourced
via MITRE·10:33 PM
DescriptionWeakness
Nov 13, 2026
Data Sourced
via NVD·12:20 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Exposure requires Astro on versions from 5.14.3 through 7.4.6 using on-demand rendering with the @astrojs/node adapter on a case-sensitive filesystem. A preexisting sibling directory whose path differs from the build output directory only by letter case must also exist.

2

What access does an attacker need to exploit it?

An attacker can exploit the issue without authentication by requesting the /_image endpoint. The accessible files are limited to image files accepted by the image service within the case-variant sibling directory; ordinary traversal to unrelated paths is rejected.

3

Are default static Astro deployments affected?

The issue requires on-demand rendering with the @astrojs/node adapter. Deployments that do not use that configuration are not described as affected.

4

What should be done if an immediate upgrade is not possible?

Remove or rename any sibling directory that differs from the build output directory only by letter case, where operationally feasible. This eliminates the preexisting case-variant path condition required for exploitation.

5

How can I determine whether the issue has been remediated?

Upgrade Astro to version 7.4.7, which fixes the issue. Also verify that the deployment does not retain a case-variant sibling directory next to the build output directory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203