r/Python • u/sethmlarson_ Python Software Foundation Staff • Oct 20 '26
News Info for Python users regarding eMudhra / emSign CA certificate security incident
A security incident affecting eMudhra intermediate certificates has required removing the emSign root CA certificate from CA bundles such as βcertifiβ. Itβs important to immediately upgrade the software packages below to at least the versions specified and rebuild container images to fetch the latest system certificates. Failure to do so could result in monster-in-the-middle (MITM) attacks against TLS clients, including python.org and pypi.org .
(1): Advisory mentions 2026.10.18, but 2026.10.19 is recommended for compatibility with unaffected emSign root certificates.
For all existing virtual environments on your system, please upgrade pip and uv to the latest versions.
Please read the full post on discuss.python.org for up-to-date information: https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576
44
u/AlSweigart Author of "Automate the Boring Stuff" Oct 20 '26
What this means for regular folks: update your browser and update pip. You can update pip to a >= 26.2.2 version from a known good location with this command:
Posted by Seth Larson himself (PSF security engineer) on Discuss.
11
u/zsol Oct 20 '26
Thanks Seth for all you do for the community
7
u/HeartfireFlamewings Oct 20 '26 edited Oct 20 '26
Correct me if i'm wrong, but creating virtual environments first installs 26.2.1 but can be upgraded with a --upgrade-deps flag, but this uses the vulnerable version to upgrade to one that is safe.
That seems a bit backwards, no?
8
u/ResidentPomegranate6 Oct 20 '26
system python upgrade won't touch venvs, each carries its own certifi. rebuild images with --no-cache or the old wheel sticks in a cached layer.
3
u/__peg_parser__ Pythonista Oct 22 '26
I have many virtual envs, and it would be a pain to find each one, activate it, and update all those packages. There was a script provided in the discussion, but it's in bash, and only upgrades pip. Is there some official script that automates all this?
1
u/Boring-Meeting-17 Oct 22 '26
Anyone here succeeded in fixing the certs for the built-in /usr/bin/pip3 on macOS Tahoe? I'm following the instructions in https://emudhra.we-have-a-problem.com/#macos-curl but getting "Operation not permitted" when trying to create the "sitecustomize.py" file.
1
u/AcceptableAmount6028 Oct 21 '26
How to.avoid such issue in production setup, can u guide !? I want to learn
0
u/[deleted] Oct 21 '26
[deleted] β view deleted comment