Description
@astrojs/netlify is an adapter that allows Astro to deploy your hybrid or server rendered site to Netlify. Prior to 7.0.13, @astrojs/netlify converts Astro image.remotePatterns into Netlify Image CDN images.remote_images regular expressions with broader semantics than Astro's canonical matcher. A single wildcard hostname such as *.example.com is converted to an optional subdomain regex, so the apex host matches. A single wildcard pathname such as /ok/* is converted without end anchoring, so deeper paths match by prefix. This vulnerability is fixed in 7.0.13.
Published: 2026-06-22
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when the @astrojs/netlify adapter translates Astro image.remotePatterns into Netlify Image CDN regular expressions with broader semantics than intended. A single wildcard hostname such as *.example.com is expanded to an optional subdomain regex, causing the apex host to match, and a single wildcard pathname such as /ok/* is converted without end anchoring, so deeper paths match by prefix. This over‑broadening allows an attacker to cause the CDN to request arbitrary URLs that were not within the original intended scope, potentially enabling server‑side request forgery (SSRF) or exposing internal resources. The impact is a loss of confidentiality and integrity for internal hosts that could be accessed through the CDN, and could also lead to a denial‑of‑service effect if the CDN is overwhelmed with unintended requests.

Affected Systems

Astro sites that use the withastro:astro product, specifically those deploying via the @astrojs/netlify adapter prior to version 7.0.13. The vulnerability exists in any instance of the adapter that has not been upgraded to a patched version, regardless of the host or path patterns configured.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting it is not among the most actively exploited flaws. Exploitation does not require privileged access; an attacker only needs to supply a crafted image URL that matches a broadened remotePattern. Because the adapter processes these patterns during site deployment or runtime request handling, the gateway for attack is relatively low. Consequently, the risk is moderate, with a measurable but not high likelihood of exploitation given current reporting and detection capabilities.

Generated by OpenCVE AI on June 22, 2026 at 19:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the @astrojs/netlify adapter to version 7.0.13 or later. This patch resolves the over‑broadening behavior of image.remotePatterns.
  • Audit existing Astro image.remotePatterns configurations to ensure that no wildcard hostname or pathname unintentionally matches unintended hosts or paths. Replace broad patterns with explicit hostnames and path anchors.
  • Implement additional CDN or network firewall rules to restrict outbound requests to only the domains and paths required by your application, providing a fallback layer of protection against accidental SSRF.

Generated by OpenCVE AI on June 22, 2026 at 19:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-529g-xq4f-cw38 @astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config
History

Mon, 22 Jun 2026 18:45:00 +0000

Type Values Removed Values Added
Description @astrojs/netlify is an adapter that allows Astro to deploy your hybrid or server rendered site to Netlify. Prior to 7.0.13, @astrojs/netlify converts Astro image.remotePatterns into Netlify Image CDN images.remote_images regular expressions with broader semantics than Astro's canonical matcher. A single wildcard hostname such as *.example.com is converted to an optional subdomain regex, so the apex host matches. A single wildcard pathname such as /ok/* is converted without end anchoring, so deeper paths match by prefix. This vulnerability is fixed in 7.0.13.
Title @astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-22T17:30:49.447Z

Reserved: 2026-06-12T17:46:37.294Z

Link: CVE-2026-54300

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-22T19:30:06Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)