{
  "id": "CVE-2026-3125",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-3125",
  "published_at": "2026-03-04T18:14:31.111Z",
  "title": "SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass",
  "vendor": "opennextjs",
  "product": "@opennextjs/cloudflare",
  "cvss": {
    "score": 7.7,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-25T19:02:32Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 235,
    "repo": "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.\n\nFor example: \n\n https://victim-site.com/cdn-cgi\\image/aaaa/https://attacker.com \n\nIn 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.\n\nNote: 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.\n\nAdditionally, 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.",
  "cwe": "CWE-918",
  "cpes": [
    "cpe:2.3:a:opennextjs:opennext_for_cloudflare:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7,
    "nvd": 6.5
  },
  "repos": [
    {
      "repo": "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651",
      "url": "https://github.com/Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651",
      "created_at": "2026-10-25T19:02:32Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-04-12T22:46:23Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "opennextjs",
        "product": "@opennextjs/cloudflare",
        "ranges": [
          "\u003c 1.17.1"
        ],
        "fixed_in": [
          "1.17.1"
        ]
      }
    ],
    "solutions": [
      "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."
    ],
    "upgrade": [
      "Upgrade @opennextjs/cloudflare to 1.17.1 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/opennextjs/opennextjs-cloudflare/pull/1147"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/advisories/GHSA-rvpw-p7vw-wj3m"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/_next/static/chunks/",
      "ports": [
        8080
      ],
      "protocol": "https",
      "repos": [
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651/CVE-2026-3125/poc.py:188"
      ]
    },
    {
      "method": "GET",
      "path_template": "/resolve",
      "query_markers": [
        "name=",
        "type=CAA"
      ],
      "ports": [
        8080
      ],
      "protocol": "https",
      "repos": [
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651/CVE-2026-14440/exploit.py:164",
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651/CVE-2026-14440/exploit.py:277",
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651/CVE-2026-14440/poc.py:227",
        "Ghost-Bx1/Cloudflare-Exploits-CVE-2026-14440-CVE-2026-3125-CVE-2025-0651/CVE-2026-14440/poc.py:342"
      ]
    }
  ],
  "rules": []
}
