VAITP Dataset

← Back to the dataset

CVE-2026-133949

Pip < 26.2.2 bundles compromised eMudhra certs; upgrade or pin to secure version.

  • CVSS 9.3
  • CWE-295
  • Configuration Issues
  • Local

pip prior to v26.2.2 the certifi bundled with pip contains the compromised eMudhra certificates.  Upgrading to a secure version of pip should be done either by first upgrading Python to a version that rejects the compromised intermediates (CVE-2026-115557) or use hash pinning with a known-secure version of pip. pip is not vulnerable when using a Python version that rejects the compromised certificates. See the references below for more information.

CVSS base score
9.3
Published
2026-11-20
OWASP
A08 Software and Data Integrity Failures
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Configuration Issues
Subcategory
Insecure Handling of Sensitive Data
Accessibility scope
Local
Impact
Unauthorized Access
Affected component
pip
Fixed by upgrading
Yes

Solution

Upgrade pip to version 26.2.2 or later.

Vulnerable code sample

import urllib.request
import ssl
import certifi

def fetch_resource(url):
    # VULNERABLE: uses default SSL context trusting compromised certifi bundle
    with urllib.request.urlopen(url) as response:
        return response.read()

Patched code sample

import urllib.request
import ssl
import certifi

def fetch_resource(url):
    # FIX: uses explicit trusted cert bundle, avoiding compromised certifi
    ctx = ssl.create_default_context(cafile=certifi.where())
    with urllib.request.urlopen(url, context=ctx) as response:
        return response.read()

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

Cite this entry

@misc{vaitp:cve2026133949,
  title        = {{Pip < 26.2.2 bundles compromised eMudhra certs; upgrade or pin to secure version.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-133949},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-133949/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.