Encode OSS httpx < 0.23.0 is affected by improper input validation in `httpx.URL`…
Priority MEDIUM 43CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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`.
Why it matters now
EPSS 0.02118 81st percentileScored 2026-11-07
Public exploit Yes 3 exploit referencesTagged by NVD
Fix Fixed httpx (PyPI): 0.23.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | httpx (PyPI) | before 0.23.0 | 0.23.0 | Patch available | GHSA-h8pj-cxx2-jfg2 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- httpx (PyPI) Vendor— Affected before 0.23.0 Fixed in 0.23.0 Patch available GHSA-h8pj-cxx2-jfg2
Remediation
- Fix · GHSA-h8pj-cxx2-jfg2 httpx (PyPI) Fixed in 0.23.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41945
- 2026-10-03 Alias added: GHSA-h8pj-cxx2-jfg2
References
Exploit 3
Advisory 4
Other 5
- 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/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml
- http://encode.com
Sources
- CVE-2021-41945 · CVE Program
- CVE-2021-41945 · NVD
- FIRST EPSS
- GHSA-h8pj-cxx2-jfg2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences