{"id":"CVE-2021-41945","aliases":["CLSA-2025-1752797525","DEBIAN-CVE-2021-41945","EUVD-2022-0122","GHSA-h8pj-cxx2-jfg2","PYSEC-2022-183","UBUNTU-CVE-2021-41945","openSUSE-SU-2024:12041-1","openSUSE-SU-2025:14664-1"],"status":"published","title":"Improper Input Validation in httpx","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.02118,"percentile":0.82103,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2022-04-28T13:22:10Z","modified":"2026-10-23T18:02:30Z","fixes":[{"ecosystem":"PyPI","package":"httpx","fixed_in":["0.23.0","0.20.0"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:PyPI","package":"httpx","fixed_in":["0.22.0.post1+tuxcare"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"httpx","fixed_in":["0.23.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"httpx","fixed_in":["0.23.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"httpx","fixed_in":["0.23.0-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"python-httpx","fixed_in":["0.28.1-2.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0"}]}]},{"source":"osv","ecosystem":"TuxCare:PyPI","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.22.0"},{"fixed":"0.22.0.post1+tuxcare"}]}],"versions":["0.22.0"]},{"source":"osv","ecosystem":"Debian:12","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0"}]}],"versions":["0.0.1","0.10.0","0.10.1","0.11.0","0.11.1","0.12.0","0.12.1","0.13.0","0.13.0.dev1","0.13.0.dev2","0.13.1","0.13.2","0.13.3","0.13.dev0","0.14.0","0.14.1","0.14.2","0.14.3","0.15.0","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.16.0","0.16.1","0.17.0","0.17.1","0.18.0","0.18.1","0.18.2","0.19.0","0.20.0","0.21.0","0.21.1","0.21.2","0.21.3","0.22.0","0.6.7","0.6.8","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.7.8","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5"]},{"source":"osv","ecosystem":"PyPI","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0"}]}],"versions":["0.0.1","0.10.0","0.10.1","0.11.0","0.11.1","0.12.0","0.12.1","0.13.0","0.13.0.dev1","0.13.0.dev2","0.13.1","0.13.2","0.13.3","0.13.dev0","0.14.0","0.14.1","0.14.2","0.14.3","0.15.0","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.16.0","0.16.1","0.17.0","0.17.1","0.18.0","0.18.1","0.18.2","0.19.0","0.6.7","0.6.8","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.7.8","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23.3-1","0.26.0-1","0.26.0-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.1-1build1","0.28.1-1.1","0.28.1-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.1-1","0.28.1-1build1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-httpx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28.1-2.1"}]}]}],"products":[{"vendor":"encode","product":"httpx"}],"references":[{"url":"https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://github.com/encode/httpx","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","package","web"]},{"url":"https://github.com/encode/httpx/discussions/1831","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/encode/httpx/issues/2184","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/encode/httpx/releases/tag/0.23.0","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41945","tags":["advisory"]},{"url":"https://github.com/encode/httpx/pull/2185","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h8pj-cxx2-jfg2","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml","tags":["web"]},{"url":"https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1","tags":["web"]},{"url":"https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c","tags":["web"]},{"url":"http://encode.com","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-41945","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-41945","tags":["report"]},{"url":"https://sources.debian.org/src/httpx/0.22.0-2/httpx/_models.py/?hl=537#L537","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-41945","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-41945","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-41945","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T13:22:10Z","modified":"2026-07-09T00:15:07.517Z","updated_at":"2026-11-02T14:32:59.105382Z"}],"euvd":[{"id":"EUVD-2022-0122","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T13:22:10Z","modified":"2026-07-09T00:15:07Z","updated_at":"2026-11-02T18:20:08.60883Z"}],"ghsa":[{"id":"GHSA-h8pj-cxx2-jfg2","title":"Improper Input Validation in httpx","description":"Encode OSS httpx \u003c=1.0.0.beta0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-29T00:00:25Z","modified":"2024-09-23T16:58:11Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"critical"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:38:05.526697Z"}],"nvd":[{"id":"CVE-2021-41945","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T14:15:07.617Z","modified":"2026-07-09T01:17:04.39Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:07:06.029737Z"}],"osv":[{"id":"CVE-2021-41945","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T14:15:07.617Z","modified":"2026-10-20T10:55:00.147388294Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-02T15:44:21.557945Z"},{"id":"DEBIAN-CVE-2021-41945","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T14:15:07.617Z","modified":"2026-10-23T18:02:30.746912902Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"GHSA-h8pj-cxx2-jfg2","title":"Improper Input Validation in httpx","description":"Encode OSS httpx \u003c=1.0.0.beta0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-29T00:00:25Z","modified":"2025-02-13T05:30:38.616835Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"},{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:48.920784Z"},{"id":"UBUNTU-CVE-2021-41945","description":"Encode OSS httpx \u003c 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T14:15:00Z","modified":"2026-10-17T12:56:15.353473077Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"id":"CLSA-2025-1752797525","title":"TuxCare security update for httpx (1 CVE)","description":"TuxCare rebuilt httpx to address 1 CVE. Fixed in 0.22.0.post1+tuxcare.","status":"published","published":"2026-08-04T14:52:09Z","modified":"2026-10-15T09:48:04.71696149Z","updated_at":"2026-11-02T15:43:42.025438Z"},{"id":"openSUSE-SU-2024:12041-1","title":"python310-httpx-0.22.0-3.1 on GA media","description":"These are all security issues fixed in the python310-httpx-0.22.0-3.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:15:18.177379Z","updated_at":"2026-11-02T16:58:35.485255Z"},{"id":"openSUSE-SU-2025:14664-1","title":"python311-httpx-0.28.1-2.1 on GA media","description":"These are all security issues fixed in the python311-httpx-0.28.1-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-01-18T00:00:00Z","modified":"2025-05-07T18:13:18.037102Z","updated_at":"2026-11-02T16:58:36.976155Z"},{"id":"PYSEC-2022-183","description":"Encode OSS httpx \u003c=1.0.0.beta0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.","status":"published","published":"2022-04-28T14:15:00Z","modified":"2023-11-08T04:07:03.301932Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
