CVE-2026-55247: Incomplete File Scheme Url Validation

URL validation only blacklists the 'file:' protocol via startswith(). This does not protect against other dangerous schemes such as 'javascript:', 'data:', or SSRF vectors. Use an explicit scheme allowlist (e.g., http/https) and parse URLs using urllib.parse.urlsplit or urlparse.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-55247-incomplete-file-scheme-url-validation --engine opengrep

Description

URL validation only blacklists the 'file:' protocol via startswith(). This does not protect against other dangerous schemes such as 'javascript:', 'data:', or SSRF vectors. Use an explicit scheme allowlist (e.g., http/https) and parse URLs using urllib.parse.urlsplit or urlparse.