Improper Handling of Case Sensitivity Affecting astro package, versions >=5.14.3 <7.4.7


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ASTRO-22552517
  • published15 Nov 2026
  • disclosed13 Nov 2026
  • creditZachariah Mithani

Introduced: 13 Nov 2026

NewCVE-2026-126364  (opens in a new tab)
CWE-178  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade astro to version 7.4.7 or higher.

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity in the /_image endpoint used by the @astrojs/node adapter, where the check that a requested local image is inside the build output directory compares paths case-insensitively. An attacker can read image files from outside the output directory by requesting /_image with an href such as /../../DIST/client/secret.png, which resolves to a directory that differs from the output directory only by letter case. Only sites that use on-demand rendering with @astrojs/node on a case-sensitive filesystem, with a case-variant directory next to the output directory, are affected, and only files the image service accepts can be read.

CVSS Base Scores

version 4.0
version 3.1