Skip to main content

Astro Cloudflare CVE-2026-41321

LOW
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-23 https://github.com/withastro/astro GHSA-88gm-j2wx-58h6
2.2
CVSS 3.1 · Vendor: https://github.com/withastro/astro
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify open redirect on victim's allowlisted CDN domain
  2. Delivery
    Craft /_image request with redirect URL pointing to internal target
  3. Exploit
    Worker passes isRemoteAllowed() check on initial CDN URL
  4. Execution
    Unguarded fetch() follows 302 to unauthorized destination
  5. Impact
    Internal service receives request from Cloudflare Worker (blind SSRF)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: first, the target site must use @astrojs/cloudflare with the default cloudflare-binding image service (not a custom image service override); second, the site's image.domains or image.remotePatterns configuration must include at least one domain that itself supports open redirects - the attacker cannot add domains to the allowlist, so exploitation is gated on the victim's specific configuration; third, the attacker must be able to send HTTP requests to the public-facing /_image endpoint, which requires no authentication (contradicting the PR:H in the official CVSS vector, which likely reflects operator-level configuration control rather than the attacker's access level). Exploitation is limited by the SSRF being blind: redirect targets' response bodies are not returned to the attacker, restricting the vulnerability to probing and side-channel inference rather than direct data exfiltration. Cloudflare Worker network egress restrictions may further constrain which internal targets are reachable.

Impact

The official CVSS score of 2.2 (AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L) materially understates real-world risk in two ways. First, PR:H is inconsistent with the described attack path: the /_image endpoint is a public-facing HTTP endpoint requiring no authentication per the advisory PoC - PR:N is more accurate. Second, C:N understates SSRF impact; blind SSRF enables probing of internal services, cloud metadata endpoints, or other Cloudflare-internal resources, warranting at least C:L. The A:L rating (availability impact) is not well-supported by the description. EPSS of 0.03% at the 10th percentile reflects low observed exploitation probability, and this CVE is not listed in CISA KEV. SSVC designates exploitation as 'poc', automatable as 'no', and technical impact as 'partial', which is the more realistic picture. The attack complexity is genuinely high: an attacker must identify and weaponize an open redirect on a domain already present in the victim's specific image.domains or image.remotePatterns configuration, making mass or automated exploitation unlikely. Risk is most elevated for deployments whose allowlists include large CDN domains known to support open redirects.

Exploit ScenarioDerived

An attacker discovers that the target Astro site's image.domains allowlist includes a CDN that supports open redirects via a parameter such as https://allowed-cdn.example.com/redirect?url=TARGET. They send a crafted request to /_image?href=https://allowed-cdn.example.com/redirect?url=http://169.254.169.254/latest/meta-data/; the isRemoteAllowed() check passes on the initial CDN URL, then the Cloudflare Worker's unguarded fetch() silently follows the 302 to the cloud metadata endpoint. The SSRF is blind - the redirect target's response is not returned to the attacker - but internal host existence and service availability can be confirmed through timing differences or error signals. A proof-of-concept demonstrating the redirect-following behavior is referenced in GHSA-88gm-j2wx-58h6.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

SSRF via redirect-following in the @astrojs/cloudflare integration's image-binding-transform endpoint allows remote attackers to bypass the image.domains and image.remotePatterns domain allowlist by exploiting an open redirect on an already-permitted domain. The root cause is a single missing { redirect: 'manual' } option on line 28 of image-binding-transform.ts - an inconsistency that was correctly applied in all three other image fetch paths in the same codebase. This is an incomplete fix for the prior HIGH-rated GHSA-qpr4-c339-7vq8, and a public proof-of-concept is confirmed in advisory GHSA-88gm-j2wx-58h6.

RemediationAI

Upgrade @astrojs/cloudflare to version 13.1.10 or later; the fix adds { redirect: 'manual' } to the vulnerable fetch() call in image-binding-transform.ts and returns a 404 for any 3xx response, consistent with all other image fetch paths. The patch is available at https://github.com/withastro/astro/commit/a43eb4b40b4f81530e3c9b5e2959495900320433 and the release at https://github.com/withastro/astro/releases/tag/%40astrojs%2Fcloudflare%4013.1.10. As a compensating control prior to patching, audit the image.domains and image.remotePatterns allowlist and remove any entries for large CDNs or third-party hosts known to support open redirects (e.g., generic URL-shortener domains or CDNs with ?url= redirect parameters); this reduces the exploitable attack surface without eliminating the underlying vulnerability and may break legitimate image sources as a trade-off. Deploying a Web Application Firewall rule to validate that the href parameter on /_image requests resolves to an allowlisted destination before forwarding is an additional layer, but adds operational complexity.

Affected Packages

npm @astrojs/cloudflare fix: 13.1.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected package is @astrojs/cloudflare (CPE: pkg:npm/@astrojs_cloudflare), the official Astro framework integration for deploying sites on Cloudflare Workers using the cloudflare-binding image service. When handling remote image transforms, the integration calls the JavaScript Fetch API, which defaults to redirect: 'follow' - transparently resolving HTTP 3xx responses to their destination before returning. The domain allowlist check (isRemoteAllowed()) is applied only to the original request URL, not to any redirect target, creating a classic CWE-918 (Server-Side Request Forgery) bypass. All three sibling fetch paths - image-passthrough-endpoint.ts:23, assets/endpoint/shared.ts:11, and assets/utils/remoteProbe.ts:53 - correctly pass { redirect: 'manual' }. The prior fix for GHSA-qpr4-c339-7vq8 patched those paths but missed image-binding-transform.ts:28, leaving this code path unprotected and confirmed exploitable on HEAD at the time of disclosure.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/withastro/astro) PRIMARY 2.2 LOW
AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

/_image is publicly accessible without authentication (PR:N); exploiting an open redirect on an allowed domain requires AC:H; blind SSRF enables partial internal host probing (C:L); no integrity or availability impact is described.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/withastro/astro).

CVSS VectorVendor: https://github.com/withastro/astro

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

2
Patch released
Apr 23, 2026 - 22:15 nvd
Patch available
CVE Published
Apr 23, 2026 - 21:52 nvd
LOW 2.2

DescriptionCVE.org

Summary

The fetch() call for remote images in packages/integrations/cloudflare/src/utils/image-binding-transform.ts (line 28) uses the default redirect: 'follow' behavior. This allows the Cloudflare Worker to follow HTTP redirects to arbitrary URLs, bypassing the isRemoteAllowed() domain allowlist check which only validates the initial URL.

All three other image fetch paths in the codebase correctly use { redirect: 'manual' }. This is an incomplete fix for GHSA-qpr4-c339-7vq8.

Confirmed on HEAD.

Root Cause

image-binding-transform.ts line 28:

const content = await (isRemotePath(href) ? fetch(imageSrc) : assets.fetch(imageSrc));

Missing { redirect: 'manual' }. The three protected paths:

// image-passthrough-endpoint.ts:23 response = await fetch(href, { redirect: 'manual' });

// assets/endpoint/shared.ts:11 const res = await fetch(src, { redirect: 'manual' });

// assets/utils/remoteProbe.ts:53 const response = await fetch(url, { redirect: 'manual' });

PoC

Demonstrated with Node.js that fetch() without redirect: 'manual' follows 302 redirects to arbitrary destinations:

Server A (allowed domain) returns 302 → Server B (internal)

fetch('http://allowed:19741/img.jpg') → follows 302 → hits http://internal:19742/secret fetch('http://allowed:19741/img.jpg', {redirect:'manual'}) → returns 302, internal server NOT hit

Attack path: attacker finds an open redirect on an allowed domain, crafts /_image?href=https://allowed-cdn.com/redirect?url=http://internal-service/, and the Worker follows the redirect to the unauthorized destination.

Impact

Bypasses the image.domains and image.remotePatterns allowlist for the default Cloudflare image service (cloudflare-binding). Enables blind SSRF to domains not in the allowlist. Same vulnerability class as GHSA-qpr4-c339-7vq8 (HIGH) which fixed the passthrough endpoint but missed this one.

Suggested Fix

const content = await (isRemotePath(href) ? fetch(imageSrc, { redirect: 'manual' }) : assets.fetch(imageSrc));

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Low
niche integration for Astro-on-Cloudflare-Workers deployments only
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

11
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +11
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

pkg:npm/@astrojs_cloudflare
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy