Improper Input Validation in httpx
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | httpx | < 0.23.0 | 0.23.0 |
References
- https://github.com/encode/httpx
- https://github.com/encode/httpx/discussions/1831
- https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571
- http://encode.com
- https://github.com/encode/httpx/issues/2184
- https://github.com/advisories/GHSA-h8pj-cxx2-jfg2
- https://nvd.nist.gov/vuln/detail/CVE-2021-41945
- https://github.com/encode/httpx/pull/2185
- https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1
- https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c
- https://github.com/encode/httpx/releases/tag/0.23.0
- https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-20- Platform
- Python (PyPI)
- Package
httpx- Disclosed
- 28.04.2022
- Updated
- 11.10.2026 12:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2022-183 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-h8pj-cxx2-jfg2 - CC BY 4.0
Vulnerability history: httpx
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.