CVE-2021-41945
CRITICAL 9.1CVSS 3.1Improper Input Validation in httpx
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.
- Published
- 28 Apr 2022
- Last modified
- 9 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-h8pj-cxx2-jfg2PYSEC-2022-183
- Sources
- NVDJSONOSV GHSA-h8pj-cxx2-jfg2JSONOSV PYSEC-2022-183JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | encode | httpxcpe:2.3:a:encode:httpx:*:*:*:*:*:python:*:* |
< 0.23.0 | 0.23.0 |
| OSV | PyPI | httpx | < 0.23.0 | 0.23.0 |
| OSV | PyPI | httpx | < 0.20.0 | 0.20.0 |
References
- https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571 · Exploit, Third Party Advisory, WEB
- https://github.com/encode/httpx · Product, Third Party Advisory, PACKAGE, WEB
- https://github.com/encode/httpx/discussions/1831 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/encode/httpx/issues/2184 · Exploit, Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/encode/httpx/releases/tag/0.23.0 · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41945 · ADVISORY
- https://github.com/encode/httpx/pull/2185 · WEB
- https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1 · WEB
- https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c · WEB
- https://github.com/advisories/GHSA-h8pj-cxx2-jfg2 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml · WEB
- http://encode.com · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 28 Apr 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 Apr 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Apr 2022)