CVE-2021-41945: encode httpx Improper Input Validation
CVSS: 9.1v3.1CriticalModified
AliasesGHSA-h8pj-cxx2-jfg2PYSEC-2022-183UBUNTU-CVE-2021-41945DEBIAN-CVE-2021-41945openSUSE-SU-2025:14664-1
Published 28-04-2022Last modified 09-07-2026
Vulnerability summary
CVE-2021-41945 is a critical (CVSS 9.1) Improper Input Validation vulnerability in encode httpx. EPSS estimates a 2.12% chance of exploitation in the next 30 days, higher than 81.5% of scored vulnerabilities. 2 public exploits are recorded.
CVSS score
9.1/10
010
Critical · v3.1 (NVD)EPSS score
2.12%
0%100%
Low · -0.06 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github
Timeline
- 28-04-2022PublishedVulnerability first disclosed.
- 09-07-2026Last modifiedVulnerability information updated.
Description
Encode OSS httpx < 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.
CVSS metrics
6 scores · 4 sources · 3 versionsCritical 9.3Preferred score · OSV · Pypi (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NSourcesSingle source
Critical 9.1Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NSourcesAll 4 agree
- OSV · PypiEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Medium 6.4Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:P/A:NSourcesSingle source
EPSS trend
Probability
2.12%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
-0.06 pp
From 2.18% on 20-09-2026
20-09-202620-10-2026
EPSS score2.12%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 found4Edb76Bbd3B5Ff993Cf44F2Fbce5E571
Maturity: poc
Httpx
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- httpx< 0.23.0-1
Encode1 product
- httpx< 0.23.0
Opensuse1 product
- python-httpx&distro=openSUSE Tumbleweed< 0.28.1-2.1
PyPI1 product
- httpx< 0.23.0 | < 0.20.0
Ubuntu1 product
- httpxAll versions (No fix recorded)
5 vendors · 5 products
References
17 linksShow all 17 references
- encode.comWEB