CVE-2026-54300: @astrojs/netlify Broadens Image Fetching Patterns, Exposing Potential Security Risks

@astrojs/netlify Updated 23 Jun 2026

Summary

16/06/2026
Yes i
Moderate
5.3

CVE-2026-54300: @astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config. Affects @astrojs/netlify versions < 7.0.13. Fixed in 7.0.13. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @astrojs/netlify package is an adapter for integrating Astro applications with Netlify's hosting and image processing services. It allows developers to configure image fetching patterns for remote images, enabling efficient image handling in web applications. However, a recent vulnerability has been identified that broadens the scope of these fetching patterns, potentially leading to unintended exposure of resources.

Vulnerability Detail

The vulnerability arises from the way @astrojs/netlify converts Astro's image.remotePatterns into regex for Netlify's Image CDN. Specifically, it allows broader matching than intended, such as accepting apex hosts for wildcard patterns and deeper paths for specified patterns. This discrepancy can lead to unauthorized access to images or resources that should be restricted, as the Netlify Image CDN may fetch images from unintended sources. The technical details reveal that the regex generation does not enforce strict matching rules, which can compromise the security of applications relying on these configurations.

How To Fix

Latest published version: 8.2.10 as of 23 Oct 2026

npm install @astrojs/netlify@8.2.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.0.13

This is the first release that contains the fix.

npm install @astrojs/netlify@7.0.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can manually adjust your image.remotePatterns to be more restrictive, ensuring that they do not include wildcard patterns that could lead to broader matches. For example, instead of using '*.example.com', specify exact subdomains.

Conclusion

The CVE-2026-54300 vulnerability in the @astrojs/netlify package poses a risk by broadening image fetching patterns, potentially exposing sensitive resources. It is crucial to update to the patched version 7.0.13 to mitigate this risk and ensure that your application remains secure.

See every vulnerability recorded for @astrojs/netlify →

Share this vulnerability

FAQ

CVE-2026-54300 is a vulnerability in the @astrojs/netlify package that broadens image fetching patterns, potentially exposing resources that should be restricted.

If your application uses @astrojs/netlify with broad image fetching patterns, it may inadvertently expose images from unintended sources, leading to security risks.

You can use Vulert, a tool that monitors open-source vulnerabilities in your software. By analyzing your package-lock.json, it can alert you to any vulnerabilities, including CVE-2026-54300.

As a temporary measure, restrict your image.remotePatterns to avoid using wildcard patterns that could lead to broader matches.

The CVSS score of this vulnerability is 5.3, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for @astrojs/netlify.

How To Fix

Latest published version: 8.2.10 as of 23 Oct 2026

npm install @astrojs/netlify@8.2.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.0.13

This is the first release that contains the fix.

npm install @astrojs/netlify@7.0.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback