Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-41945

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-41945
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:58 UTC · Revision 1

Source evidence

CVE-2021-41945

core-osv · Original source

Published 28 Apr 2022, 14:15 UTC

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

osv:CVE-2021-41945
Complete source record
{
  "id": "3f052fa228e65ebcc93a28889c96e58854f56adcf7e9fb669f938e04198448fa",
  "url": "https://osv.dev/vulnerability/CVE-2021-41945",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-41945",
    "summary": "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`.",
    "evidence": "osv:CVE-2021-41945",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-41945",
      "aliases": [
        "CVE-2021-41945",
        "GHSA-h8pj-cxx2-jfg2",
        "PYSEC-2022-183"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/encode/httpx",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "89cdd903b2f339c6ae319773c31b8c9352bd9cd8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:encode:httpx:*:*:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.23.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "89cdd903b2f339c6ae319773c31b8c9352bd9cd8"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "0.23.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.22.0",
            "0.21.3",
            "0.21.2",
            "0.21.1",
            "0.21.0",
            "0.20.0",
            "1.0.0.beta0",
            "0.19.0",
            "0.18.2",
            "0.18.1",
            "0.18.0",
            "0.17.1",
            "0.17.0",
            "0.16.1",
            "0.16.0",
            "0.15.5",
            "0.15.4",
            "0.15.3",
            "0.15.2",
            "0.15.1",
            "0.15.0",
            "0.14.3",
            "0.14.2",
            "0.14.1",
            "0.14.0",
            "0.13.3",
            "0.13.2",
            "0.13.1",
            "0.13.0",
            "0.13.0.dev2",
            "0.13.0.dev1",
            "0.13.0.dev0",
            "0.12.1",
            "0.12.0",
            "0.11.1",
            "0.11.0",
            "0.10.0",
            "0.9.5",
            "0.9.4",
            "0.9.3",
            "0.9.2",
            "0.9.1",
            "0.9.0",
            "0.8.0",
            "0.7.8",
            "0.7.7",
            "0.7.6",
            "0.7.5",
            "0.7.4",
            "0.7.3",
            "0.7.2",
            "0.7.1",
            "0.7.0",
            "0.6.8",
            "0.6.7",
            "0.6.6",
            "0.6.5",
            "0.6.4",
            "0.6.3",
            "0.6.2",
            "0.6.1",
            "0.6.0",
            "0.5.0",
            "0.4.0",
            "0.3.1",
            "0.3.0",
            "0.2.1",
            "0.2.0",
            "0.1.1",
            "0.1.0",
            "0.0.3",
            "0.0.2",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41945.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:00.147388294Z",
      "provider": "osv",
      "references": [
        "https://github.com/encode/httpx/releases/tag/0.23.0",
        "https://github.com/encode/httpx/discussions/1831",
        "https://github.com/encode/httpx/issues/2184",
        "https://github.com/encode/httpx",
        "https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-41945",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386654,
  "published_at": "2022-04-28T14:15:07.617+00:00"
}