# CVE-2021-41945

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 0.23.0 (CNA); fix release not confirmed
- Status: published
- Published: 2022-04-28 · Modified: 2026-07-09
- Aliases: GHSA-h8pj-cxx2-jfg2, PYSEC-2022-183, UBUNTU-CVE-2021-41945, DEBIAN-CVE-2021-41945, openSUSE-SU-2025:14664-1
- Record: https://cvemate.com/vulnerability/CVE-2021-41945 · JSON: https://cvemate.com/vulnerability/CVE-2021-41945/json

## Description

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

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 2.118%, percentile 82.484%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github)

## Affected

- debian httpx (Debian): \< 0.23.0-1
- ubuntu httpx (Ubuntu): All versions (No fix recorded)
- encode httpx: \< 0.23.0
- PyPI httpx (PyPI): \< 0.23.0 \| \< 0.20.0
- opensuse python-httpx&distro=openSUSE Tumbleweed (openSUSE): \< 0.28.1-2.1

## References

- <https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571>
- <https://github.com/encode/httpx>
- <https://github.com/encode/httpx/discussions/1831>
- <https://github.com/encode/httpx/issues/2184>
- <https://github.com/encode/httpx/releases/tag/0.23.0>
- <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/advisories/GHSA-h8pj-cxx2-jfg2>
- <https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml>
- <http://encode.com>
- <https://ubuntu.com/security/CVE-2021-41945>
- <https://sources.debian.org/src/httpx/0.22.0-2/httpx/_models.py/?hl=537#L537>
- <https://www.cve.org/CVERecord?id=CVE-2021-41945>
- <https://security-tracker.debian.org/tracker/CVE-2021-41945>
- <https://www.suse.com/security/cve/CVE-2021-41945>

---

Data as of 2026-12-05T05:11:18.239Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
