CVE-2026-3125: Ssrf Via Path Regex Extraction

Extracting a destination URL from the request path via regular expressions and directly passing it to `fetch` enables Server-Side Request Forgery (SSRF). This approach is additionally vulnerable to WAF/Edge bypasses via path normalization differences (such as using backslashes). Validate and allowlist the extracted destination before making request calls.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-3125-ssrf-via-path-regex-extraction --engine opengrep

Description

Extracting a destination URL from the request path via regular expressions and directly passing it to `fetch` enables Server-Side Request Forgery (SSRF). This approach is additionally vulnerable to WAF/Edge bypasses via path normalization differences (such as using backslashes). Validate and allowlist the extracted destination before making request calls.