CVE-2021-41945
JSON

9.1critical

Improper Input Validation in httpx

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
2.12% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-h8pj-cxx2-jfg2PYSEC-2022-183

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`.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
httpx (PyPI)before 0.23.0, before 0.20.0GitHub Advisory Database, PyPA Advisory Database
encode httpxbefore 0.23.0NVD

All scores

GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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`.

GitHub Advisory Database

Encode OSS httpx <=1.0.0.beta0 is affected by improper input validation in httpx.URL, httpx.Client and some functions using httpx.URL.copy_with.

NVD (es)

Encode OSS httpx anterior a la versión 0.23.0 se ve afectado por una validación de entrada inadecuada en `httpx.URL`, `httpx.Client` y algunas funciones que utilizan `httpx.URL.copy_with`.

References

https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571exploit, third-party-advisory, web
https://github.com/encode/httpxpackage, product, third-party-advisory, web
https://github.com/encode/httpx/discussions/1831exploit, issue-tracking, third-party-advisory, web
https://github.com/encode/httpx/issues/2184exploit, issue-tracking, report, third-party-advisory, web
https://github.com/encode/httpx/releases/tag/0.23.0release-notes, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-41945advisory
https://github.com/encode/httpx/pull/2185web
https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1web
https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5cweb
https://github.com/advisories/GHSA-h8pj-cxx2-jfg2advisory
https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yamlweb
http://encode.comweb

Sources

SourceRecordLicence
CVE ListCVE-2021-41945 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-h8pj-cxx2-jfg2 changed 2025-02-13CC-BY-4.0
NVDCVE-2021-41945 changed 2026-07-09Public domain
PyPA Advisory DatabasePYSEC-2022-183 changed 2023-11-08CC-BY-4.0