Can an outdated pip trust certificates that browsers already blocked? Yes. Eight eMudhra CA keys were small enough to guess, and every pip version below 26.2.2 still trusts them. This Cryptothreads guide explains the flaw, the response timeline, the real risks, and the exact upgrade steps for Python users.
Python told users to upgrade pip to version 26.2.2 or later. The private keys behind eight eMudhra intermediate certificate authorities (CAs) were so weak that anyone could recover them. Unpatched Python tools can face man-in-the-middle (MITM) attacks, including on connections to python.org and pypi.org.
The catch is that pip ships its own certificate list. Updating the operating system alone does not fix the problem. Chrome, Firefox, Apple, and Microsoft have already blocked the certificates, and no real attack has been reported so far.
Further information: eMudhra Certificate Flaw
Source of information: https://cryptothreads.io/news/python-pip-upgrade-emudhra-certificate/
eMudhra is an Indian certificate authority that sells certificates under the emSign brand. Six of the eight exposed keys served TLS, and two served code signing. Anyone holding one of these keys could create a valid-looking certificate for any website.
A root CA signs intermediate CAs, which then sign website certificates. The flaw sat at the intermediate level.
A secure private key is an extremely large number that nobody can practically guess. All eight eMudhra keys used elliptic curve cryptography with a value of d below 256. At least one key had d equal to 4.
That makes the keys only 3 to 8 bits long, against 384 bits for a standard NIST P-384 key. With just 256 possible values, a computer finds each key almost instantly.
On October 17, a researcher credited by Mozilla only as Wayne signed a message with each of the eight private keys. The signed messages proved he controlled them. Vendors moved fast:
October 17: the incident was reported, and Chrome and Firefox blocked the certificates within hours.
October 18: eMudhra revoked all eight certificates.
October 19: Sectigo revoked its cross-signed copies, and Apple blocked the certificates.
October 20: Microsoft blocked the certificates, and Mozilla and Chrome published details.
Chrome blocked by public key, which also caught the Sectigo cross-signed copies. Software that carries its own CA list did not benefit. pip is one example.
eMudhra traced the problem to a faulty certificate-generation script. It created weak key pairs alongside valid ones. Because the labels looked similar, staff picked weak keys for signing by mistake.
The company said its infrastructure was not compromised and no data leaked. The keys leaked through a generation error, not a breach.
pip does not rely only on the operating system's certificate store. According to Python, it always loads certificates from its bundled copy of certifi as well. No supported way exists to turn that off.
As a result, every pip version below 26.2.2 keeps trusting the compromised certificates. That holds even after the operating system removes them.
Some users pointed pip to another bundle through PIP_CERT or the cert option. Python core developer Christian Heimes said this fails. Both options only add CAs to the list and leave the bundled certifi in place.
Python lists these minimum versions:
pip: 26.2.2
certifi: 2026.10.19
uv: 0.13.4
sigstore: 4.5.1
pixi: 0.82.1
For certifi, go straight to 2026.10.19. Release 2026.10.18 removed every emSign root CA, including unaffected ones. Version 2026.10.19 restored the valid roots, which avoids connection errors on sites using normal emSign certificates.
The main risk is an attacker posing as a trusted server. The certifi advisory carries a critical rating with a CVSS score of 9.1.
An attacker must sit between the user and the server, for example on public Wi-Fi or a compromised network. From there, they could intercept or alter traffic from any app that relies on certifi. Examples include requests, urllib3, pip, and the python.org installer for macOS.
In the worst case, a fake PyPI page could serve a package laced with malware, and pip would show no warning. That turns a certificate flaw into a supply chain attack, where users install poisoned code from a source they trust.
Many trading bots and exchange scripts run on Python and send API keys through the requests library. If a bot connects to a fake server, an attacker could capture those credentials. This risk follows from certifi's reach, not from a confirmed incident.
Bot operators who ran older tools on untrusted networks may want to rotate their keys. Cryptothreads notes that crypto hacks drained about $766 million in September 2026 alone.
Google found no certificates issued from the eight CAs in Certificate Transparency logs before the block. eMudhra also said it had issued no certificates to end users. The keys are now public, however, so unpatched tools cannot spot a forged certificate.
Most everyday browser users are already protected. The risk sits with tools that do not check revocation status. Those tools keep trusting the chain until their code or bundled root list is updated.
Python is not the only ecosystem affected. Go 1.27.3 and 1.26.10 reject any chain through the eight CAs, but applications gain that protection only after a rebuild with the new release. Mozilla also warned that the curl build shipped with macOS does not check revocation status.
Python says upgrading pip is the only reliable fix. Six steps cover it:
Check versions. Run pip with the version flag, and read the installed certifi version.
Upgrade pip safely. An old pip could itself be attacked during the upgrade. Python therefore recommends installing the pip 26.2.2 wheel file directly and verifying its SHA-256 hash.
Update certifi and uv to the versions above. uv users can also enable the UV_SYSTEM_CERTS setting to use the system certificate store.
Repeat in every virtual environment, since each one has its own pip. Until CPython ships a patched ensurepip, upgrade pip after creating each new venv.
Rebuild Docker images with the no-cache option and upgrade pip inside the image. Any image bundling certifi needs a rebuild.
macOS users who installed Python from python.org should upgrade both pip and certifi, because that installer ships its own certifi copy.
The eMudhra certificate flaw came from a key-generation error, and browsers already block the affected certificates. Older pip versions still trust them, so upgrading pip, certifi, and related tools is the only reliable fix. No attacks have been reported so far. Update every environment and Docker image today.
Contact:
Email: business@cryptothreads.io
Website: https://cryptothreads.io/
Related posts:
https://cryptothreadss.blogspot.com/2026/12/emudhra-certificate-flaw.html
https://creators.spotify.com/pod/profile/cryptothreads3/episodes/eMudhra-Certificate-Flaw-e3thfjk