{"id":"CVE-2021-41945","aliases":["GHSA-h8pj-cxx2-jfg2","PYSEC-2022-183"],"url":"https://o3.security/vulnerability/CVE-2021-41945","summary":"Improper Input Validation in httpx","details":"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`.","published":"2022-04-28T14:15:07.617Z","modified":"2026-07-15T10:20:11.031133Z","cvss":{"score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},"epss":{"score":0.02144,"percentile":0.80298,"asOf":"2026-08-06"},"cisaKev":null,"exploitsKnown":3,"affectedPackages":[{"ecosystem":"PyPI","name":"httpx","fixedVersion":"0.23.0"}],"fix":{"url":"https://github.com/encode/httpx/pull/2185","label":"encode/httpx#2185"},"references":[{"type":"ADVISORY","url":"https://github.com/encode/httpx/releases/tag/0.23.0"},{"type":"REPORT","url":"https://github.com/encode/httpx/discussions/1831"},{"type":"REPORT","url":"https://github.com/encode/httpx/issues/2184"},{"type":"PACKAGE","url":"https://github.com/encode/httpx"},{"type":"EVIDENCE","url":"https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41945"},{"type":"WEB","url":"https://github.com/encode/httpx/pull/2185"},{"type":"WEB","url":"https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1"},{"type":"WEB","url":"https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h8pj-cxx2-jfg2"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml"},{"type":"WEB","url":"http://encode.com"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T10:20:11.031133Z"}}