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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.