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`

published April 28, 2022

CVSS
—
EPSS
2%
Percentile
81.7
In the wild
Unconfirmed
What it is

⚠️ Improper input validation in httpx could let unsavory requests sneak through! With versions below 0.23.0 affected, this is a sneaky gap not to be overlooked! 🔍 Think of it like a restaurant that doesn't check if a customer is ordering from the right menu. You could end up serving someone a dish meant for a VIP, causing a whole mess! 🍽️ While there's no known exploitation at this moment, an attacker could potentially manipulate HTTP requests in ways you didn’t intend, leading to data leaks or unexpected behaviors. It's a risk worth taking seriously!

Put simply

Think of it like a restaurant that doesn't check if a customer is ordering from the right menu. You could end up serving someone a dish meant for a VIP, causing a whole mess! 🍽️ This vulnerability stems from improper input validation in the `httpx.URL` and `httpx.Client` components, specifically in methods that copy URLs without adequately checking the input. This oversight could allow for malicious URLs to bypass intended restrictions.

What to do

While there's no known exploitation at this moment, an attacker could potentially manipulate HTTP requests in ways you didn’t intend, leading to data leaks or unexpected behaviors. It's a risk worth taking seriously! To remediate this issue, ensure you upgrade httpx to version 0.23.0 or later. Additionally, review any custom implementations of `httpx.URL.copy_with` for additional validation checks. 🛠️ You've got this! Stay vigilant and keep your software updated to fend off potential risks! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02118 · 81.7th percentile
Published
2022-04-28T13:22Z
EPSS history
Timeline
  • 28 APR 13:22Z
    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`
    cvelistv5