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

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

- **Severity:** Low 3.7 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Aug 2026
- **Updated:** 13 Aug 2026
- **Also known as:** GHSA-hp3v-mfqw-h74c

## 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 (Incorrect Regular Expression)

## Which versions are affected by CVE-2026-73425?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@astrojs/netlify` | npm | All versions | 8.1.2 |
| `@astrojs/netlify` | npm | All versions | 8.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.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-73425 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2026-73425 in the wild and no public exploit code.

Affected packages and fixed versions:
- @astrojs/netlify (npm): affected all versions; fixed in 8.1.2
- @astrojs/netlify (npm): affected all versions; fixed in 8.1.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-73425/ (Markdown: https://insights.sbomify.com/CVE-2026-73425/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-73425
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-73425
- OSV: https://osv.dev/vulnerability/CVE-2026-73425

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-73425/
Summaries are generated and may contain mistakes; the official description above is the record.
