Critical Vulnerabilities in python-pip: Security Flaws Exposed

python-pip Updated 03 Oct 2025

Summary

23/09/2025
N/A
Yes i
Unrated
Not published

USN-7762-1: python-pip vulnerabilities. Affects python-pip versions < 22.0.2+dfsg-1ubuntu0.7. Fixed in 22.0.2+dfsg-1ubuntu0.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

python-pip is a package management system for Python that allows users to install and manage additional libraries and dependencies that are not part of the standard library. It is widely used in various applications to facilitate the installation of Python packages. However, recent vulnerabilities have been identified in the Requests and urllib3 modules bundled with python-pip, which could potentially expose sensitive information and lead to denial of service attacks.

Vulnerability Detail

The vulnerabilities stem from multiple issues discovered in the libraries bundled with python-pip. Specifically, Requests was found to incorrectly leak Proxy-Authorization headers (CVE-2023-32681) and did not correctly parse URLs, which could lead to sensitive information leakage (CVE-2024-47081). Additionally, urllib3 failed to strip HTTP body on status code 303 redirects (CVE-2023-45803), and idna did not manage certain inputs properly, leading to resource consumption issues (CVE-2024-3651). These vulnerabilities could allow remote attackers to exploit the flaws, potentially leading to information disclosure and denial of service.

How To Fix

Minimum fixed version

22.0.2+dfsg-1ubuntu0.7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid using the affected features of the Requests and urllib3 libraries until the package is updated. Additionally, consider using alternative libraries for handling HTTP requests that do not exhibit these vulnerabilities.

Conclusion

In summary, critical vulnerabilities have been identified in python-pip that could expose sensitive information and lead to denial of service. It is crucial for users to update to the latest patched versions to mitigate these risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for python-pip →

Share this vulnerability

FAQ

The main vulnerabilities include information leakage through Proxy-Authorization headers, improper URL parsing, failure to strip HTTP body on redirects, and resource consumption issues.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

These vulnerabilities could allow remote attackers to gain access to sensitive information or cause denial of service, impacting the security and availability of applications using python-pip.

You can update python-pip by running the command: sudo apt update && sudo apt upgrade python3-pip in your terminal.

If you cannot update immediately, consider using alternative libraries for HTTP requests and avoid using the affected features until the update is applied.

Related vulnerabilities

Recent vulnerabilities recorded for python-pip.

How To Fix

Minimum fixed version

22.0.2+dfsg-1ubuntu0.7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback