Hex.pm breached via CVE-2026-129514, an unauth Erlang RCE (CVSS 10)
The Elixir/Erlang package registry hex.pm was hit by an unauthenticated deserialization RCE on Nov 23. Rotate hex.pm credentials and 2FA; pull packages only from repo.hex.pm.
Hex.pm, the package registry for the Elixir and Erlang ecosystems, disclosed that an unauthenticated attacker ran code on its web servers on November 23. The flaw — CVE-2026-129514, rated CVSS 10 — is an unauthenticated deserialization bug in hex.pm that an attacker triggered with a crafted Erlang External Term Format request body to execute OS commands. Hex says it blocked the traffic and deployed a fix within 20 minutes. If you publish or pull packages from hex.pm, rotate your credentials now.
Primary source is Hex's own incident writeup; it is corroborated by reporting at SecurityWeek.
The timeline
Per Hex's disclosure, the active window was minutes:
- 18:16–18:29 UTC (Nov 23): the attacker sent 69 malicious requests across six web servers.
- 18:30 UTC: Hex replaced all hex.pm servers with patched versions.
- 18:33 UTC: a firewall rule fully blocked the attacker's traffic.
What may be exposed
Hex says it cannot rule out access to: email addresses, password hashes, API key hashes, sessions, two-factor authentication secrets, and audit logs. It found no evidence of unauthorized package modifications, database changes, or persistent attacker access.
One caveat Hex is explicit about: reads of private packages were observed, but all came from Hex's own servers — and a read from a compromised server would look legitimate. Database and private-documentation reads aren't logged, which limits how much the team can see. Translation: absence of evidence here is thinner than usual, so treat secrets as potentially exposed.
Related patches
Hex found the same unsafe-deserialization class elsewhere and shipped fixes alongside the incident:
- Ash Framework — CVE-2026-124283 (patched Nov 24).
- db_connection — CVE-2026-133555.
- flop — CVE-2026-130411.
If you depend on any of these, update them, not just your Hex client.
What Hex already rotated
Hex rotated storage, CDN, email, and database credentials, plus the keys that sign sessions and access tokens — which logged out every hex.pm and Hex client user. It is building a new registry signing system with key-rotation support.
Action checklist
- Change your hex.pm password and reset 2FA. Both the password hash and the 2FA secret are in the may-be-exposed set.
- Rotate your hex.pm API keys and any CI secrets that hold them; the key hashes are in scope.
- Pull packages only from
repo.hex.pmuntil new Hex client versions ship. Avoid third-party mirrors — a mirror is exactly where tampered artifacts would surface. - Update affected libraries: Ash Framework, db_connection, and flop, per the CVEs above.
- Treat Hex "support" emails with suspicion. With email addresses potentially leaked, phishing is the obvious follow-on; verify links resolve to hex.pm.
Context
A registry compromise is worse than a single-package compromise because the registry is the trust root the whole ecosystem resolves against — the same reason a stolen maintainer token on npm propagates downstream faster than anyone can react. Hex caught this one in minutes and found no package tampering, which is the good outcome. The uncomfortable part is the logging gap it admits: when the signing keys and session secrets might have been read and you can't prove they weren't, rotating everything is the only honest response — which is what Hex did, and what its users now have to do too.