Incorrect Regular Expression Affecting @astrojs/netlify package, versions <8.1.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 Learn

Learn about Incorrect Regular Expression vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ASTROJSNETLIFY-18319706
  • published26 Jul 2026
  • disclosed20 Jul 2026
  • creditUnknown

Introduced: 20 Jul 2026

New CVE NOT AVAILABLE CWE-185  (opens in a new tab)

How to fix?

Upgrade @astrojs/netlify to version 8.1.2 or higher.

Overview

@astrojs/netlify is a Deploy your site to Netlify

Affected versions of this package are vulnerable to Incorrect Regular Expression in the remotePatternToRegex process. An attacker can access unintended image URLs on the allowed host by crafting requests that exploit unescaped regex metacharacters in the pathname. This may allow bypassing intended restrictions on image CDN optimization requests.

Workaround

This vulnerability can be mitigated by avoiding regex metacharacters (such as .) in image.remotePatterns[].pathname values, or by scoping the allowed host so that unintended paths are not reachable.

CVSS Base Scores

version 4.0
version 3.1