 |
| CVSS Score | 9.0 Critical |
| CWE | CWE-295 (Improper Certificate Validation) |
| Affected | pip = 25.0 / certifi >= 2026.1.31 |
The certifi CA bundle shipped with pip includes the eMudhra root CA, which was found capable of issuing unauthorized TLS certificates for arbitrary domains. A network-level MITM attacker can serve a malicious PyPI mirror with a valid eMudhra-signed certificate, tricking pip into installing attacker-controlled packages without warning.
Dev->>MITM: pip install somepackage (HTTPS)
MITM->>PyPI: Intercept + serve malicious package
PyPI->>MITM: Response with eMudhra-signed cert
MITM->>Dev: Deliver malicious package (cert validates — CWE-295)
python cve_2026_133949.py --probe pypi.org
# Verify eMudhra CA is removed from certifi bundle
python -c "import certifi; print('eMudhra' in open(certifi.where()).read())"
This PoC is published for educational and authorized security research purposes only. Unauthorized use is illegal. The authors assume no liability.
