CVE-2026-73425 @astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escaped

Low 3.7 Published Updated

Attackers can bypass image CDN restrictions by exploiting unescaped regex metacharacters in pathname patterns, allowing unauthorized image optimization.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-73425?

CVE-2026-73425 is a low-severity vulnerability in withastro astro, published on 12 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Astro is a web framework for content-driven websites. Prior to 8.1.2, the Astro Netlify adapter converts each image.remotePatterns entry into a regular expression written to .netlify/v1/config.json under images.remote_images for Netlify's Image CDN allowlist. In packages/integrations/netlify/src/index.ts, remotePatternToRegex() escapes dots in hostname values but interpolates literal pathname values without escaping regular expression metacharacters such as ., +, ?, (, and [, so a restrictive pathname such as /img/v1.0/file also matches metacharacter-adjacent paths, including paths that cross a segment. Netlify enforces the generated regular expression directly and Astro's matchPattern() helper does not revalidate the request, allowing optimization of images on an already-allowed host that the declared pathname was intended to exclude. This issue is fixed in version 8.1.2.

Weakness: CWE-185

Which versions are affected by CVE-2026-73425?

2 open source packages ship an affected version, including @astrojs/netlify.

PackageAffectedFixed in
@astrojs/netlify npmAll versions8.1.2
@astrojs/netlify npmAll versions8.1.2

How do I fix CVE-2026-73425?

Upgrade @astrojs/netlify to 8.1.2 or later.

Is CVE-2026-73425 being exploited?

There is no known exploitation of CVE-2026-73425 in the wild and no public exploit code.

Sources

Also known as GHSA-hp3v-mfqw-h74c.

Is CVE-2026-73425 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free