Your browser is fixed. Your terminal isn't. The eMudhra checklist for Macs

A certificate company called eMudhra made a mistake that let anyone forge website certificates. Browsers are fixed once your Mac is updated, but Node, pnpm, Python, Homebrew and other command-line tools keep their own trusted lists and need separate updates. This step-by-step checklist shows you how to test and fix each one.

Oct 22, 2026

Security

Pixel Spaniel Chasing Numbered eMudhra Bugs

1. Update macOS

1. Update macOS

1. Update macOS

2. Run the check

2. Run the check

2. Run the check

Paste the whole block into Terminal. It only contacts a harmless test site that shows a bad certificate, and works in a throwaway folder it deletes afterwards.

curl -fsSL https://spaniel.sh/emudhra-check | bash
curl -fsSL https://spaniel.sh/emudhra-check | bash
curl -fsSL https://spaniel.sh/emudhra-check | bash

View the source code on GitHub

Each line shows one of four results: ok (nothing to do), NEEDS FIX (fix it in step 3), not installed (skip it) or can't tell (check you’re online, then ask IT). Each result is followed by the copy of the tool it checked, so you know which one to fix.

It judges each tool by whether the command worked. A tool that reaches a normal site but not the test site is ok.

3. Fix each line that says NEEDS FIX

3. Fix each line that says NEEDS FIX

3. Fix each line that says NEEDS FIX

Line

Fix

macos

Update macOS (step 1). This also covers Safari and pnpm 12.

curl

The Mac's built-in curl, git and python3 read /etc/ssl/cert.pem, which Apple hasn't updated yet. Run the command below this table (needs your password; keeps a backup at /etc/ssl/cert.pem.bak). If you never use Terminal, you can wait for Apple instead.

node

Install the latest release of your major: see Fixing Node below.

pnpm

Standalone pnpm 10 or 11 (which pnpm shows Library/pnpm): see Fixing pnpm below. Installed with npm, Homebrew or Corepack: it runs on your Node, so fixing Node fixes it. pnpm 12: step 1 fixes it. Whichever you use, also see Check your projects' pnpm pins.

python3

Apple's built-in python3 and uv's Python read /etc/ssl/cert.pem, so the curl fix below covers them. Upgrading pip or certifi doesn't.

pip

Upgrade to pip 26.2.2 or newer: python3 -m pip install --upgrade pip (needs Python 3.10 or newer). Apple's python3 is 3.9, so on it, or a virtual environment made from it, do the curl fix and then the pip command below this table.

uv

uv self update (0.13.5 or newer), or brew upgrade uv if Homebrew installed it.

brew

brew update && brew upgrade ca-certificates

deno

deno upgrade (2.9.8 or newer)

bun

bun upgrade (1.4.4 or newer)

The curl fix, pasted as one command:

sudo cp -p /etc/ssl/cert.pem /etc/ssl/cert.pem.bak &&\
sudo awk '/^(###|===) /{skip=0}
  /^=== .*\/CN=(AAA Certificate Services|emSign ECC Root CA - G3)$/{skip=1}
  !skip' /etc/ssl/cert.pem.bak | sudo tee

sudo cp -p /etc/ssl/cert.pem /etc/ssl/cert.pem.bak &&\
sudo awk '/^(###|===) /{skip=0}
  /^=== .*\/CN=(AAA Certificate Services|emSign ECC Root CA - G3)$/{skip=1}
  !skip' /etc/ssl/cert.pem.bak | sudo tee

sudo cp -p /etc/ssl/cert.pem /etc/ssl/cert.pem.bak &&\
sudo awk '/^(###|===) /{skip=0}
  /^=== .*\/CN=(AAA Certificate Services|emSign ECC Root CA - G3)$/{skip=1}
  !skip' /etc/ssl/cert.pem.bak | sudo tee

The pip fix for Apple's python3, after the curl fix (also needs your password):

F="$(/usr/bin/python3 -c 'import sysconfig; print(sysconfig.get_path("stdlib"))')/sitecustomize.py" &&
echo 'import os; os.environ.setdefault("PIP_CERT", "/etc/ssl/cert.pem")' | sudo tee -a "$F" > /dev/null &&
sudo chmod 644 "$F"
F="$(/usr/bin/python3 -c 'import sysconfig; print(sysconfig.get_path("stdlib"))')/sitecustomize.py" &&
echo 'import os; os.environ.setdefault("PIP_CERT", "/etc/ssl/cert.pem")' | sudo tee -a "$F" > /dev/null &&
sudo chmod 644 "$F"
F="$(/usr/bin/python3 -c 'import sysconfig; print(sysconfig.get_path("stdlib"))')/sitecustomize.py" &&
echo 'import os; os.environ.setdefault("PIP_CERT", "/etc/ssl/cert.pem")' | sudo tee -a "$F" > /dev/null &&
sudo chmod 644 "$F"

Fixing Node

Fixing Node

Fixing Node

Run node --version to see your major (the first number). Install the latest release of that major; it must be at least the version below:

Your major

Minimum fixed version

26

26.12.1

24

24.22.1

22

22.23.4

20 or older

No fix: move to 22 (22.23.4 or newer)

Then run which node and use the row that matches the path, replacing <v> with your major, such as 24 (or 22 if you’re on 20 or older). Each command installs that major’s latest release:

which node shows

Run

fnm

fnm install <v> && fnm default <v>

.nvm

nvm install <v> && nvm alias default <v>

.volta

volta install node@<v>

mise

mise use -g node@<v>

/opt/homebrew, or brew list node works

brew upgrade node (or brew upgrade node@22 for a versioned install)

Anything else

The nodejs.org installer

Remove older Node versions afterwards (fnm uninstall or nvm uninstall with the old version). Projects that pin a version in .nvmrc, .node-version or Volta’s field in package.json still use the old one, so update those pins too.

Fixing pnpm

Fixing pnpm

Fixing pnpm

This is only for the standalone pnpm. Run which pnpm: if the path contains Library/pnpm, carry on below. Otherwise, your pnpm runs on your own Node, so it's fixed once the node line says ok (pnpm 12 is fixed by step 1).

Pick one option. Option B runs on your own Node, so do Fixing Node above first if you choose it.

Option A (simplest): update the standalone build in place. Name your major: a plain pnpm self-update jumps to pnpm 12, a major upgrade your projects may not be ready for.

You're on

Run

Bundled Node

11.x

pnpm self-update 11

26.12.1

10.x

pnpm self-update 10

24.22.1

12.x

Nothing for pnpm itself: it uses the Mac's own list, fixed in step 1. Then see Check your projects' pnpm pins below

None; it's a native program

9.x or older

Use Option B

Your fixed Node

Says it's already up to date, but the check still shows NEEDS FIX? pnpm 11 skips releases less than a day old, as does any pnpm with minimum-release-age set. Run the exact version instead: pnpm self-update 11.28.8 or pnpm self-update 10.34.8.

Option B: switch to the npm version. Use it on pnpm 9 or older, or if you'd rather pnpm follow your own Node. It runs on the Node you just fixed, so future Node updates cover it too. Replace 10 with your major from pnpm --version:

rm -rf ~/Library/pnpm && npm install -g
rm -rf ~/Library/pnpm && npm install -g
rm -rf ~/Library/pnpm && npm install -g

This also clears pnpm's cache and global packages, so reinstall any global packages afterwards. In a new Terminal window, which pnpm should no longer point into Library/pnpm.

Check your projects' pnpm pins (any pnpm version)

Check your projects' pnpm pins (any pnpm version)

Check your projects' pnpm pins (any pnpm version)

A project can pin its pnpm version in package.json, for example "packageManager": "pnpm@10.33.4". When it does, pnpm switches to exactly that version’s standalone build, with its own Node and certificate list, even if your own pnpm is fixed. The check above runs outside your projects, so it can’t see these pins. Pins below 10.34.8 (pnpm 10) or 11.28.8 (pnpm 11) still trust the eMudhra roots.

4. Rerun the check

4. Rerun the check

4. Rerun the check

Not covered by the check

Not covered by the check

Not covered by the check

Go and rustup need nothing beyond step 1 on a Mac: in their standard setups, both check certificates with the Mac’s own list. If you build Go programs to run elsewhere, such as on Linux servers or in Docker, rebuild them with Go 1.27.3 or 1.26.10.

Java isn’t in the check either. It keeps its own certificate list, so updating macOS doesn’t fix it, and fixed versions differ by vendor. If you use Java, check your JDK vendor’s advisory (the tracker links them) and install its October 2026 security update once it’s out.

The check also doesn’t look inside your projects or apps. Libraries that carry their own certificate list need updating in each project: for Python, certifi 2026.10.19 or newer in each virtual environment; for Rust, rustls-webpki 0.103.16 or webpki-roots 1.0.10 or newer in each Cargo.lock. Apps built on Electron, such as Slack and Discord, are fixed by updating the app.

Test site and fixed versions from emudhra.we-have-a-problem.com, by Dennis Jackson and community contributors.

Newsletter

I'm sending out a irregular newsletter sometimes. If you wanna be part of the subscriber list, I'd love to have you sign up.