9.1

CVE-2021-41945: encode httpx Improper Input Validation

Modified
AliasesGHSA-h8pj-cxx2-jfg2PYSEC-2022-183UBUNTU-CVE-2021-41945
Published 28-04-2022Last modified 09-07-2026

Vulnerability summary

CVE-2021-41945 is a critical (CVSS 9.1) Improper Input Validation vulnerability in encode httpx. EPSS estimates a 2.12% chance of exploitation in the next 30 days, higher than 82.4% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
2.12%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github

Timeline

  1. 28-04-2022
    PublishedVulnerability first disclosed.
  2. 09-07-2026
    Last modifiedVulnerability information updated.

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

CVSS metrics

6 scores · 4 sources · 3 versions

EPSS trend

Probability

2.12%

Chance of exploitation in the next 30 days

Percentile

82%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.12% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    4Edb76Bbd3B5Ff993Cf44F2Fbce5E571

    Maturity: poc

  • githubUnverified

    Httpx

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • httpx< 0.23.0-1
Encode1 product
Opensuse1 product
  • python-httpx&distro=openSUSE Tumbleweed< 0.28.1-2.1
PyPI1 product
  • httpx< 0.23.0 | < 0.20.0
Ubuntu1 product
  • httpxAll versions (No fix recorded)

5 vendors · 5 products

References

17 links
Show all 17 references