_safe_read
Lib/http/client.py
Last patched
Overview
_safe_read in Lib/http/client.py (python/cpython) was changed by 1 published CVE fix in 2025, in 5 distinct patches that added or removed 23 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 _safe_read, newest first, with the lines each fix touched.
CVE-2025-13836 · lines 650–668 · +19 −4
Medium · CVSS 6.3EPSS 1.7%2025-12-01
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_tunnelLib/http/client.py5 patches · 1 CVE2026
- 2beginLib/http/client.py4 patches · 2 CVEs2022 to 2026
- 3putrequestLib/http/client.py4 patches · 1 CVE2019
- 4__init__Lib/http/client.py4 patches · 1 CVE2019
- 5_validate_hostLib/http/client.py4 patches · 1 CVE2019
- 6_read_next_chunk_sizeLib/http/client.py2 patches · 1 CVE2026
- 7parse_headersLib/http/client.py1 patch · 1 CVE2022
Other hotspots in the repository
Functions in python/cpython changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to _safe_read.
- How many CVEs have patched _safe_read?
- 1 published CVEs changed _safe_read in python/cpython, in 5 distinct patches totalling 23 changed lines, between 2025 and 2025.
- What is the latest CVE that changed _safe_read?
- CVE-2025-13836 (Excessive read buffering DoS in http.client), published 2025-12-01, changed lines 650 to 668 of Lib/http/client.py.
- How does _safe_read compare to the rest of python/cpython?
- python/cpython has 132 CVEs with a located fix in total; 1 of them changed _safe_read.
- 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.