Astro: Netlify Image CDN allowlist bypass enables SSRF
Summary
The @astrojs/netlify adapter generated regular expressions for Netlify Image CDN remote-image allowlists without anchoring them to the beginning of the URL. Netlify evaluates these expressions with RegExp.test(), so an allowed image origin appearing anywhere in a URL, including its path or query string, could satisfy the allowlist.
For example, an application allowing images.example.com could accept a source URL such as:
http://127.0.0.1:6379/?url=https://images.example.com/image.png
The allowlist matched the approved origin in the query string, but Netlify parsed and fetched the URL whose actual host was 127.0.0.1.
Impact
An unauthenticated attacker can bypass the configured image.domains or image.remotePatterns allowlist through the public /.netlify/images endpoint and cause Netlify Image CDN to make requests to attacker-selected URLs. This may allow probing or reaching internal services, depending on Netlify's network-level egress protections.
The Image CDN attempts to transform responses as images, which limits direct response exfiltration. No confidentiality or integrity impact has been demonstrated.
Affected versions
@astrojs/netlify versions from 5.2.0 through 8.2.3.
Patches
Fixed in @astrojs/netlify 8.2.4. Generated remote-image allowlist expressions are now anchored to both the beginning and end of the source URL.
Workarounds
Upgrade to @astrojs/netlify 8.2.4 or later. Before upgrading, disable Netlify Image CDN by setting imageCDN: false in the adapter configuration, or remove remote image allowlist entries.
Credits
Reported by @pacocartones.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| npm-Paket | @astrojs/netlify | >= 5.2.0, < 8.2.4 | 8.2.4 |
Verweise
- https://github.com/withastro/astro/security/advisories/GHSA-4233-jc72-56c5
- https://nvd.nist.gov/vuln/detail/CVE-2026-102983
- https://github.com/withastro/astro/pull/17752
- https://github.com/withastro/astro/commit/e362d4cf540b27730482455c8fc02efe57d16702
- https://github.com/withastro/astro
- https://github.com/withastro/astro/releases/tag/@astrojs/netlify@8.2.4
- CVSS-Vektor
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N- Schwäche (CWE)
CWE-625, CWE-918- Plattform
- npm
- Paket
@astrojs/netlify- Veröffentlicht
- 30.09.2026
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-4233-jc72-56c5 - CC BY 4.0
Schwachstellenhistorie: @astrojs/netlify
Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 3
- Erste → letzte
- 06.2026 09.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Mittel 2
- Niedrig 1
Veröffentlichungen pro Jahr
- 2026: 3
-
Astro: Netlify Image CDN allowlist bypass enables SSRF dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.