Hex.pm breach: attacker code ran through error logging
Hex.pm breach (CVE-2026-129514): an attacker ran commands on six registry servers. Reset your password and 2FA, and fetch only from repo.hex.pm.
The Hex.pm breach hit the package registry for Elixir, Erlang and Gleam. In its incident report, the Hex team says an attacker ran operating-system commands on six hex.pm web servers on November 23, using a flaw now tracked as CVE-2026-129514. Hex found no modified packages. But it cannot rule out that the attacker read email addresses, password hashes and 2FA secrets. The registry signing key is also not rotated yet. If anything you run pulls from Hex, you have work to do this weekend.
What actually happened
From the Hex.pm report:
- The window. 69 malicious requests between 18:16 and 18:29 UTC on November 23. Hex added a firewall rule at 18:27 and replaced every server with a patched build by 18:31.
- The bug. hex.pm decoded unauthenticated Erlang-term request bodies before routing and auth. The decoder blocked functions but did not check maps, so the attacker sent fake Elixir structs. A request raised an error, and the error-reporting path called
inspecton the struct. That ran the attacker's chosen code. The safety check had been missing since February 2016. - Prep work. The attacker had downloaded hex.pm's own dependencies since November 19. Hex reads that as building a local copy to test against.
- Possible exposure. Email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs. Database reads are not logged, so Hex cannot say either way.
- Packages. All 23 releases published in the window match audit logs. No older release changed.
- Credentials. Almost every secret was rotated by November 24, which logged all users out. Two exceptions: the registry signing key and "a few low-impact secrets". Hex says a signing system that supports key rotation will ship in new client releases "in the coming days".
The Cloud Security Alliance's research note also flags the signing key as the open item: Hex has no way to rotate it until the new system ships.
Why it matters for your business
Elixir runs plenty of quiet production work: Phoenix storefronts, job queues, webhook handlers. Your builds trust whatever the registry serves. Hex did its part fast. The rest is on you:
- Reset your hex.pm password and 2FA. Choose "Setup New App" under Authenticator App to get a new secret.
- Use
repo.hex.pmonly. No third-party mirrors until the new client ships. Then runmix local.hex --force, and update rebar3 or Gleam too. - Watch for phishing. Hex says to check that links go to
hex.pm. A leaked email list attracts fake security notices. - Check your own error path. This attack ran through error reporting. If your Sentry or logger formats untrusted input, that path is part of your attack surface.
Same pattern as the Todoist breach this week: the vendor fixed the hole quickly, and customers still had to rotate their own credentials.
Key takeaways
- An attacker ran commands on six hex.pm servers on November 23 via CVE-2026-129514
- Emails, password hashes and 2FA secrets may have been read; no packages were found modified
- The registry signing key is not rotated yet; fetch only from repo.hex.pm
- Reset your hex.pm password and set up a new 2FA app today
- Error reporting that inspects untrusted input can become a code-execution path
Do you know every registry your builds pull from? We map small-business build pipelines, pin dependencies to sources you control, and harden the error and logging paths attackers now aim at. Book a pipeline review or see our engineering services.
Sources: Hex.pm incident report, Cloud Security Alliance research note.
- #hex-pm
- #elixir
- #supply-chain-security
- #package-registry
- #cve-2026-129514
Tommy Rush — Founder, Rush Commerce
Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More
Get The Rush Report weekly — one email, zero fluff.
Keep reading
Windows Server 2028 removes WSUS, SMBv1, VBScript and WMIC
Microsoft's Windows Server 2028 preview list removes WSUS, SMBv1, VBScript, WMIC, PPTP and legacy BIOS. Find what depends on them before you upgrade.
Read itRocket vibe-coding platform shuts down December 31
Rocket, an Indian rival to Lovable and Replit, closes December 31 and tells users to download their code and data. Here is what to export this week.
Read it