{"schema":"threatline.record/2","record":{"id":"CVE-2026-3125","aliases":["CVE-2025-6087","GHSA-c7mq-gh6q-6q7c","GHSA-rvpw-p7vw-wj3m"],"summary":"SSRF vulnerability in opennextjs-cloudflare via /cdn-cgi/ path normalization bypass","details":"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.","categories":["Libraries & packages"],"product":"@opennextjs/cloudflare","vendor":"opennextjs","ecosystem":"npm","affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-3125","source_modified_at":"2026-03-04T18:58:56.614Z","fetched_at":"2026-10-25T21:40:15.971031Z","product":"@opennextjs/cloudflare","vendor":"opennextjs","versions":[{"lessThan":"1.17.1","status":"affected","version":"0","versionType":"npm"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-c7mq-gh6q-6q7c","source_modified_at":"2026-03-16T03:05:38.239106Z","fetched_at":"2026-10-26T00:08:39.284423Z","package":{"name":"@opennextjs/cloudflare","ecosystem":"npm","purl":"pkg:npm/%40opennextjs/cloudflare"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.1"}]}],"versions":[]}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-3125","source_modified_at":"2026-03-04T18:58:56.614Z","fetched_at":"2026-10-25T21:40:15.971031Z","package":{"name":"@opennextjs/cloudflare","ecosystem":null},"version":"1.17.1","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-c7mq-gh6q-6q7c","source_modified_at":"2026-03-16T03:05:38.239106Z","fetched_at":"2026-10-26T00:08:39.284423Z","package":{"name":"@opennextjs/cloudflare","ecosystem":"npm","purl":"pkg:npm/%40opennextjs/cloudflare"},"version":"1.17.1"}],"cvss":7.7,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00377,"percentile":0.31453,"score_date":"2026-10-25"},"published_at":"2026-03-04T18:14:31.111Z","modified_at":"2026-03-16T03:05:38.239106Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-3125","fetched_at":"2026-10-25T21:40:15.971031Z","source_modified_at":"2026-03-04T18:58:56.614Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-c7mq-gh6q-6q7c","fetched_at":"2026-10-26T00:08:39.284423Z","source_modified_at":"2026-03-16T03:05:38.239106Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-3125","fetched_at":"2026-10-25T21:40:15.971031Z","source_modified_at":"2026-10-25"}],"sources":["CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/opennextjs/opennextjs-cloudflare/pull/1147","tags":["patch"]},{"source":"CVE List","url":"https://www.npmjs.com/package/@opennextjs/cloudflare/v/1.17.1","tags":["product"]},{"source":"CVE List","url":"https://github.com/advisories/GHSA-rvpw-p7vw-wj3m","tags":["related"]},{"source":"CVE List","url":"https://www.cve.org/cverecord?id=CVE-2025-6087","tags":["related"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","assessed_at":"2026-03-04T18:58:41.207814Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-03-16T03:05:38.239106Z","content_hash":"f10d3c3880cdd41040e36dc8b9436967f764d21fd0ab2298430df4667dd60738"}}
