parse_headers
Lib/http/client.py
Last patched
Overview
parse_headers in Lib/http/client.py (python/cpython) was changed by 1 published CVE fix in 2022, in 1 distinct patch that added or removed 25 lines in total.
python/cpython has 132 CVEs with a located fix in total, so 1% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed parse_headers, newest first, with the lines each fix touched.
CVE-2021-3737 · lines 205–233 · +17 −8 in 2 hunks
High · CVSS 7.5EPSS 13.2%2022-03-04
Get an alert when the next CVE fix lands in python/cpython, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
- 1_safe_readLib/http/client.py5 patches · 1 CVE2025
- 2_tunnelLib/http/client.py5 patches · 1 CVE2026
- 3beginLib/http/client.py4 patches · 2 CVEs2022 to 2026
- 4_validate_hostLib/http/client.py4 patches · 1 CVE2019
- 5__init__Lib/http/client.py4 patches · 1 CVE2019
- 6putrequestLib/http/client.py4 patches · 1 CVE2019
- 7_read_next_chunk_sizeLib/http/client.py2 patches · 1 CVE2026
Other hotspots in the repository
Functions in python/cpython changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to parse_headers.
- How many CVEs have patched parse_headers?
- 1 published CVEs changed parse_headers in python/cpython, in 1 distinct patches totalling 25 changed lines, between 2022 and 2022.
- What is the latest CVE that changed parse_headers?
- CVE-2021-3737 (python: urllib: HTTP client possible infinite loop on a 100 Continue response), published 2022-03-04, changed lines 205 to 233 of Lib/http/client.py.
- How does parse_headers compare to the rest of python/cpython?
- python/cpython has 132 CVEs with a located fix in total; 1 of them changed parse_headers.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- Lib/http/client.py on GitHub (opens in a new tab)
- All patched functions in python/cpython
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track python/cpython CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.