CriticalGHSA-h8pj-cxx2-jfg2CVE-2021-41945PYSEC-2022-183
Improper Input Validation in httpx
Published 29 Apr 2022 · Updated 13 Feb 2025
Is your project on an affected httpx?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
httpxPyPI
- Affected
- <0.23.0
- Fixed in
- 0.23.0
Update to the fixed version for your release line, for example:
pip install 'httpx>=0.23.0'Details
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.
Is GHSA-h8pj-cxx2-jfg2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected httpx, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-41945
- Linkgithub.com/encode/httpx/issues/2184
- Linkgithub.com/encode/httpx/pull/2185
- Linkgithub.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1
- Linkgithub.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c
- Linkgist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571
- Advisorygithub.com/advisories/GHSA-h8pj-cxx2-jfg2
- Packagegithub.com/encode/httpx
- Linkgithub.com/encode/httpx/discussions/1831
- Linkgithub.com/encode/httpx/releases/tag/0.23.0
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml
- Linkencode.com
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.