{"id":"UBUNTU-CVE-2021-41945","details":"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`.","modified":"2026-05-20T16:06:29.727853987Z","published":"2022-04-28T14:15:00Z","upstream":["CVE-2021-41945"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-41945"},{"type":"REPORT","url":"https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571"},{"type":"REPORT","url":"https://github.com/encode/httpx/discussions/1831"},{"type":"REPORT","url":"https://github.com/encode/httpx/issues/2184"},{"type":"REPORT","url":"https://sources.debian.org/src/httpx/0.22.0-2/httpx/_models.py/?hl=537#L537"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-41945"}],"affected":[{"package":{"name":"httpx","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/httpx?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23.3-1","0.26.0-1","0.26.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-httpx","binary_version":"0.26.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41945.json"}},{"package":{"name":"httpx","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/httpx?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-httpx","binary_version":"0.28.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41945.json"}},{"package":{"name":"httpx","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/httpx?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.1-1","0.28.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-httpx","binary_version":"0.28.1-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41945.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}