CVE-2026-116827: Php Curl Unvalidated Url Ssrf With Redirects

A libcurl request is created from a non-constant URL while redirect following is enabled (CURLOPT_FOLLOWLOCATION = true) and the URL is neither validated nor restricted with CURLOPT_PROTOCOLS. An attacker-controlled URL here enables server-side request forgery (CWE-918): libcurl's default protocol set exposes file://, dict:// and gopher://, a redirect from a

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-116827-php-curl-unvalidated-url-ssrf-with-redirects --engine opengrep

Description

A libcurl request is created from a non-constant URL while redirect following is enabled (CURLOPT_FOLLOWLOCATION = true) and the URL is neither validated nor restricted with CURLOPT_PROTOCOLS. An attacker-controlled URL here enables server-side request forgery (CWE-918): libcurl's default protocol set exposes file://, dict:// and gopher://, a redirect from a