CVE-2026-34514: Python Unvalidated Content Type Header

A function parameter is assigned to a header dictionary (e.g., content_type) without prior verification for carriage return ('\r') or newline ('\n') characters. If attacker-controlled, this can lead to header injection or multipart structure corruption.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-34514-python-unvalidated-content-type-header --engine opengrep

Description

A function parameter is assigned to a header dictionary (e.g., content_type) without prior verification for carriage return ('\r') or newline ('\n') characters. If attacker-controlled, this can lead to header injection or multipart structure corruption.