ADVISORIES

GitHub Advisory Database

GHSA-q5qw-4364-5hhm

Django Vulnerable to HTTP Response Splitting Attack

Details

Django before 1.4.21, 1.5.x through 1.6.x, 1.7.x before 1.7.9, and 1.8.x before 1.8.3 uses an incorrect regular expression, which allows remote attackers to inject arbitrary headers and conduct HTTP response splitting attacks via a newline character in an (1) email message to the EmailValidator, a (2) URL to the URLValidator, or unspecified vectors to the (3) validate_ipv4_address or (4) validate_slug validator.

Affected packages

EcosystemPackageAffected versions
PyPIdjango
All versions before 1.4.21 (fixed in 1.4.21)
PyPIdjango
From 1.5 before 1.7.9 (fixed in 1.7.9)
PyPIdjango
From 1.8a1 before 1.8.3 (fixed in 1.8.3)

References