Все статьи

The emSign root certificate incident in certifi, pip and uv, update your Python environments

The private keys of eight eMudhra intermediate certificate authorities were compromised and the certificates were revoked. Those certificates chain to the emSign ECC Root CA - G3 root. In the Python world, certifi and uv shipped that root, and Python itself gets certifi through pip. An attacker holding a key can mint a certificate that looks valid for any hostname.

For an attack to happen the attacker needs both the key and a position on the network path. Still, tools like requests, urllib3 and pip trust certifi, so even pip install is exposed. That is why Python 3.15.1, 3.14.9 and 3.13.17 came out on 21 October as an expedited security release.

Who is affected

certifi. Versions from 2019.03.09 through 2026.10.18 carry the root. Version 2026.10.18 removed all emSign roots. Version 2026.10.19 then restored the emSign roots that are not affected. The fix is 2026.10.19 or later.

uv. Before 0.13.4, uv accepts this root from the webpki-root-certs bundle it ships by default. Version 0.13.4 removes the root.

Python. The pip 26.2.2 inside 3.15.1, 3.14.9 and 3.13.17 brings certifi 2026.10.19. The Python.org macOS installer also uses certifi.

Node.js and Electron. The Node.js security releases of 21 October (v22.23.4, v24.22.1, v26.12.1) update the ca-cert bundle for the same incident. For Electron, a mitigation was published under CVE-2026-115570 and is recorded as 45.0.0-beta.6. For other Electron lines, check Electron's own announcement.

How to fix it

First find out what you are running.

python -c "import certifi; print(certifi.__version__, certifi.where())"
python -m pip --version
uv --version

Then update.

python -m pip install -U pip certifi
pip install -U uv          # if you installed uv with pip
uv self update             # if you installed uv standalone

Every virtual environment has its own copy of pip and certifi. You have to update inside each venv separately, and updating the system Python is not enough. To find them all on a server use find / -type d -name certifi -path '*site-packages*' 2>/dev/null. The certifi-*.dist-info folder next to each hit shows its version.

With Docker, rebuild the images that carry certifi and use --no-cache so the pip install step does not come from a cached layer. If you installed with the Python.org macOS installer, use the pip upgrade command in the release notes, because it has a download address pinned to a specific version and hash.

Verification

python -c "import certifi; print(certifi.__version__)"   # 2026.10.19 or later
python -c "import requests; print(requests.certs.where())"
pip --version                                             # 26.2.2 or later

requests uses certifi, so the second command shows which file it reads. This post covers Python, uv and Node/Electron. For the Linux system certificate store, follow your distribution's announcements separately.

A silent failure

An old client accepts the fake certificate by mistake, so you will not see an error message. That means "it works" is not a check that protects you. Look at the version number.

Sources

Related posts

Written by sheduxdev.

The emSign root certificate incident in certifi, pip and uv, update your Python environments | TurkishPvP LLC