{"schemaVersion":3,"id":"CVE-2021-41945","aliases":["GHSA-h8pj-cxx2-jfg2","PYSEC-2022-183","UBUNTU-CVE-2021-41945","DEBIAN-CVE-2021-41945","openSUSE-SU-2025:14664-1"],"status":"published","duplicateOf":null,"title":null,"description":"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`.","dates":{"published":"2022-04-28T13:22:10.000Z","modified":"2026-07-09T00:15:07.517Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","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","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.4,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02118,"percentile":0.81597,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.059999999999999984,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02178},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02144,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02144,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02144,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02118,"percentile":0.81597}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02178,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02118,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02118,"percentile":0.81597}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_LEBR0NLI_4EDB76BBD3B5FF993CF44F2FBCE5E571","name":"4Edb76Bbd3B5Ff993Cf44F2Fbce5E571","source":"github","url":"https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_ENCODE_HTTPX","name":"Httpx","source":"github","url":"https://github.com/encode/httpx/discussions/1831","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"debian","product":"httpx","name":"httpx","label":"httpx","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/httpx","purlType":"deb","versions":[{"text":"< 0.23.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.23.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"httpx","name":"httpx","label":"httpx","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/httpx","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"encode","product":"httpx","name":"httpx","label":"httpx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.23.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.23.0","eol":null,"hubHref":"/vendor/encode/httpx"},{"vendor":"PyPI","product":"httpx","name":"httpx","label":"httpx","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/httpx","purlType":"pypi","versions":[{"text":"< 0.23.0","noFixRecorded":false,"fixedIn":null},{"text":"< 0.20.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.23.0 | < 0.20.0","eol":null,"hubHref":null},{"vendor":"opensuse","product":"python-httpx&distro=openSUSE Tumbleweed","name":"python-httpx","label":"python-httpx&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-httpx&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 0.28.1-2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.28.1-2.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571","label":"gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571","hostname":"gist.github.com","tags":["WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/encode/httpx","label":"github.com/encode/httpx","hostname":"github.com","tags":["PACKAGE","WEB","Product","Third Party Advisory"]},{"url":"https://github.com/encode/httpx/discussions/1831","label":"github.com/encode/httpx/discussions/1831","hostname":"github.com","tags":["WEB","REPORT","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/encode/httpx/issues/2184","label":"github.com/encode/httpx/issues/2184","hostname":"github.com","tags":["WEB","REPORT","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/encode/httpx/releases/tag/0.23.0","label":"github.com/encode/httpx/releases/tag/0.23.0","hostname":"github.com","tags":["WEB","Release Notes","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41945","label":"nvd.nist.gov/vuln/detail/CVE-2021-41945","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/encode/httpx/pull/2185","label":"github.com/encode/httpx/pull/2185","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1","label":"github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c","label":"github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-h8pj-cxx2-jfg2","label":"github.com/advisories/GHSA-h8pj-cxx2-jfg2","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml","hostname":"github.com","tags":["WEB"]},{"url":"http://encode.com","label":"encode.com","hostname":"encode.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-41945","label":"ubuntu.com/security/CVE-2021-41945","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://sources.debian.org/src/httpx/0.22.0-2/httpx/_models.py/?hl=537#L537","label":"sources.debian.org/src/httpx/0.22.0-2/httpx/_models.py/?hl=537","hostname":"sources.debian.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-41945","label":"www.cve.org/CVERecord?id=CVE-2021-41945","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-41945","label":"security-tracker.debian.org/tracker/CVE-2021-41945","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-41945","label":"www.suse.com/security/cve/CVE-2021-41945","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-04-28T13:22:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-09T00:15:07.517Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T02:19:19.287Z","stale":false,"partial":false}}