CVE-2026-3125
SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass
Mitigation
- Upgrade @opennextjs/cloudflare to 1.17.1 or later.
Who should check
- Anyone running @opennextjs/cloudflare < 1.17.1
Vulnerability facts
- Affected
- @opennextjs/cloudflare < 1.17.1
- Fixed in
- @opennextjs/cloudflare 1.17.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.50% chance of exploitation in 30 days (percentile 35, 2026-11-26)
- CWE
- CWE-918, CWE-706
- Modified
Description
A Server-Side Request Forgery (SSRF) vulnerability was identified in the @opennextjs/cloudflare package, resulting from a path normalization bypass in the /cdn-cgi/image/ handler.The @opennextjs/cloudflare worker template includes a /cdn-cgi/image/ handler intended for development use only. In production, Cloudflare's edge intercepts /cdn-cgi/image/ requests before they reach the Worker. However, by substituting a backslash for a forward slash (/cdn-cgi\image/ instead of /cdn-cgi/image/), an attacker can bypass edge interception and have the request reach the Worker directly. The JavaScript URL class then normalizes the backslash to a forward slash, causing the request to match the handler and trigger an unvalidated fetch of arbitrary remote URLs. For example: https://victim-site.com/cdn-cgi\image/aaaa/https://attacker.com In this example, attacker-controlled content from attacker.com is served through the victim site's domain (victim-site.com), violating the same-origin policy and potentially misleading users or other services. Note: This bypass only works via HTTP clients that preserve backslashes in paths (e.g., curl --path-as-is). Browsers normalize backslashes to forward slashes before sending requests. Additionally, Cloudflare Workers with Assets and Cloudflare Pages suffer from a similar vulnerability. Assets stored under /cdn-cgi/ paths are not publicly accessible under normal conditions. However, using the same backslash bypass (/cdn-cgi\... instead of /cdn-cgi/...), these assets become publicly accessible. This could be used to retrieve private data. For example, Open Next projects store incremental cache data under /cdn-cgi/_next_cache, which could be exposed via this bypass.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| @opennextjs/cloudflare | < 1.17.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-3125. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-3125.md Affected: @opennextjs/cloudflare < 1.17.1 Fixed in: @opennextjs/cloudflare 1.17.1 Steps: 1. Search this machine and project for @opennextjs/cloudflare: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-3125 being exploited?
There is no confirmed exploitation: CVE-2026-3125 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-3125?
High: CVSS 7.7 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-3125?
@opennextjs/cloudflare < 1.17.1.
Is there a fix for CVE-2026-3125?
Yes. Fixed in @opennextjs/cloudflare 1.17.1. Upgrade @opennextjs/cloudflare to 1.17.1 or later.
How do I check if I'm affected by CVE-2026-3125?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.