PoC Monitor
← All CVEs
CVE-2026-3125published 4 Mar 2026 18:14 UTCData: JSON · API

Opennextjs @opennextjs/cloudflare

SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass

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.

First public PoC 235 daysafter publication · 25 Oct 2026
Public PoCs11 on GitHub
CVSS7.7high · scored by CNA · CWE-918
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

opennextjs @opennextjs/cloudflare
  • < 1.17.1

Fixed in 1.17.1

Mitigation

Server-side updates to Cloudflare's Workers platform to block backslash path normalization bypasses for /cdn-cgi requests. The update automatically mitigates the issue for all existing and any future sites deployed to Cloudflare Workers.

In addition to the platform level fix, root cause fix https://github.com/opennextjs/opennextjs-cloudflare/pull/1147 has been implemented to the Cloudflare adapter for Open Next. The patched version of the adapter is found at @opennextjs/cloudflare@1.17.1 ( https://www.npmjs.com/package/@opennextjs/cloudflare https://www.npmjs.com/package/@opennextjs/cloudflare )

Dependency update https://github.com/opennextjs/opennextjs-cloudflare/pull/1150 to the Next.js template used with create-cloudflare (c3) to use the fixed version of the Cloudflare adapter for Open Next.

References

Timeline

Days relative to CVE publication
t=0+30+60+90+120+150+180+210CVE published4 Mar 2026 · t = 0First public PoC25 Oct 2026 · t+235d

First public PoC 235 days after publication; not in CISA KEV. First PoC: Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651 (created 25 Oct 2026, found by us: 14 Nov 2026).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedFound by usStarsAssessment
Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651 25 Oct 2026 +235 d 14 Nov 2026 1 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /_next/static/chunks/
(?i)^/_next/static/chunks/(?:[?#].*)?$
GET /resolve
(?i)^/resolve\?(?:.*&)?name=.*type=CAA

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /_next/static/chunks/
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-3125 opennextjs @opennextjs/cloudflare exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_next/static/chunks/"; reference:url,poc.griffinguard.io/cve/CVE-2026-3125; classtype:web-application-attack; sid:9114044; rev:1;)
GET /resolve
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-3125 opennextjs @opennextjs/cloudflare exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/resolve"; http.uri; content:"name="; http.uri; content:"type=CAA"; reference:url,poc.griffinguard.io/cve/CVE-2026-3125; classtype:web-application-attack; sid:9262881; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /_next/static/chunks/
title: opennextjs @opennextjs/cloudflare exploit attempt (CVE-2026-3125)
id: gg-pocmon-cve-2026-3125-9114044
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-3125. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-3125
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/_next/static/chunks/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.3125
GET /resolve
title: opennextjs @opennextjs/cloudflare exploit attempt (CVE-2026-3125)
id: gg-pocmon-cve-2026-3125-9262881
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-3125. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-3125
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/resolve'
    cs-uri-query|contains|all:
      - 'name='
      - 'type=CAA'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.3125