JLSEC-2026-1604: CRLF Injection
http.client in Python 3.x before 3.5.10, 3.6.x before 3.6.12, 3.7.x before 3.7.9, and 3.8.x before 3.8.5 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by inserting CR and LF control characters in the first argument of HTTPConnection.request.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Python_jllto a version that resolves this vulnerability.Fixed in 3.8.8+0
Event History
Frequently Asked Questions
Which Python versions are affected?
Affected releases are Python 3.x before 3.5.10, Python 3.6 before 3.6.12, Python 3.7 before 3.7.9, and Python 3.8 before 3.8.5.
What does an attacker need to control to exploit this issue?
The attacker must be able to control the HTTP request method passed as the first argument to HTTPConnection.request. Exploitation involves placing CR and LF control characters in that method value.
How can I determine whether my deployment is exposed?
Check whether the bundled or deployed Python runtime falls within an affected version range and whether untrusted input can reach the HTTP request method argument of HTTPConnection.request.