{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-3125","id":"CVE-2026-3125","title":"SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass","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, ","descriptionLong":"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.","published":"2026-03-04T18:14:31.111Z","updated":"2026-10-28T02:30:30.597508885Z","reserved":"2026-02-24T14:15:54.385Z","status":"Analyzed","rejected":false,"assigner":"cloudflare","metric":{"version":"4.0","score":7.7,"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","rating":"high","source":"cloudflare"},"metrics":[{"version":"4.0","score":7.7,"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","rating":"high","source":"cloudflare"},{"version":"4.0","score":7.7,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"cloudflare.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:L/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["opennextjs @opennextjs/cloudflare"],"affectedProducts":[{"vendor":"opennextjs","product":"@opennextjs/cloudflare","defaultStatus":"unaffected","versions":[{"lessThan":"1.17.1","status":"affected","version":"0","versionType":"npm"}],"platforms":["Cloudflare Workers"]}],"packages":[{"ecosystem":"npm","name":"@opennextjs/cloudflare","purl":"pkg:npm/%40opennextjs/cloudflare","ranges":["<1.17.1","<1.3.0"],"fixed":["1.17.1","1.3.0"],"advisory":"GHSA-c7mq-gh6q-6q7c"}],"cwes":["CWE-918","CWE-706"],"aliases":["CVE-2025-6087","GHSA-c7mq-gh6q-6q7c","GHSA-rvpw-p7vw-wj3m"],"references":[{"url":"https://github.com/opennextjs/opennextjs-cloudflare/pull/1147","tags":["patch","Issue Tracking","Patch","fix","web"]},{"url":"https://www.npmjs.com/package/@opennextjs/cloudflare/v/1.17.1","tags":["product","Product","Release Notes","web"]},{"url":"https://github.com/advisories/GHSA-rvpw-p7vw-wj3m","tags":["related","Third Party Advisory","advisory"]},{"url":"https://www.cve.org/cverecord?id=CVE-2025-6087","tags":["related","Third Party Advisory","web"]},{"url":"https://www.npmjs.com/package/@opennextjs/cloudflare","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3125.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3125","tags":["advisory"]},{"url":"https://github.com/opennextjs/opennextjs-cloudflare","tags":["package"]},{"url":"https://github.com/opennextjs/opennextjs-cloudflare/security/advisories/GHSA-c7mq-gh6q-6q7c","tags":["web"]},{"url":"https://github.com/opennextjs/opennextjs-cloudflare/commit/f5bd138fd3c77e02f2aa4b9c76d55681e59e98b4","tags":["web"]},{"url":"https://github.com/opennextjs/opennextjs-cloudflare/security/advisories/GHSA-rvpw-p7vw-wj3m","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6087","tags":["advisory"]},{"url":"https://github.com/cloudflare/workers-sdk/pull/9608","tags":["web"]},{"url":"https://github.com/opennextjs/opennextjs-cloudflare/pull/727","tags":["web"]},{"url":"https://github.com/opennextjs/opennextjs-cloudflare/commit/36119c0f490c95b3d4f6e826d745b728c80625ab","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.004,"epssPercentile":0.35027,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-3125","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3125","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-3125","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c7mq-gh6q-6q7c","ok":true,"note":"GHSA-c7mq-gh6q-6q7c"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rvpw-p7vw-wj3m","ok":true,"note":"GHSA-rvpw-p7vw-wj3m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-3125","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}