Hex Package Registry Vulnerability: Rotate Credentials

A Hex package registry vulnerability, CVE-2026-129514 (CVSS 10.0), let an unauthenticated attacker run commands on the servers of Hex.pm, the registry for Elixir and Erlang packages, on November 23. The Hex team found no evidence that any package was modified, but it cannot rule out that account data was read, and it had not yet rotated the registry signing key as of its November 24 update.
What Happened to the Hex Package Registry
According to the GitHub advisory and the Hex team’s incident post, the Hex package registry vulnerability sat in the code that decodes request bodies in Erlang term format. That parser runs before routing and authentication, so any POST request reached it. It used a decoder in “safe” mode that still let crafted struct values through, and a chain through error reporting, Ecto and DBConnection ended in an operating system command. The advisory (deserialization of untrusted data, CWE-502) says the flaw affected hex.pm from February 23, 2016 until the fix on November 23, 2026.
The attacker sent 69 malicious requests between 18:16 and 18:29 UTC on November 23, and commands ran on six web servers. The Hex team blocked the traffic and had a patched build on every server by 18:31. It reports no unexpected package files, no database changes and no lasting access: all 23 releases published during the incident match its audit log, and checksums for 62 package files and 186 registry files match. It cannot rule out that the attacker read data, because database reads are not logged. That could include email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs, and possibly private packages and documentation. The advisory notes that the servers’ environment also held the storage credentials and the registry signing key.
The team replaced the infrastructure credentials, which signed everyone out of Hex and its clients. According to the post of November 24, the registry signing key and a few low-impact secrets were not yet rotated. A new signing system that supports key rotation, with new client releases, is planned “in the coming days”, and until then the Hex team says not to trust third-party mirrors and to fetch packages only from repo.hex.pm. It reported the incident to the Swedish data protection authority IMY, to CISA and to ENISA.
Why It Matters
A registry is a root of trust: every build that runs a dependency fetch trusts what it serves and the key that signs it. The evidence so far points the right way, a 13-minute window and no tampering found. The open question is the signing key, because until it is rotated the Hex team itself advises against mirrors. We have no data on how many companies in Germany, Austria or Switzerland build on Elixir or Erlang, so this is not a regional alarm. The lesson applies to any registry or artifact proxy your pipelines trust, and the pattern is familiar from our October post on the LiteLLM supply chain attack: a supply chain incident rarely ends with the patch.
What You Should Do Now
- If you or your team have Hex.pm accounts: change the password, then reset 2FA under Authenticator App, “Setup New App”, in the security dashboard. Hex says API keys do not need rotating because they are stored as hashes of 128-bit random values. Expect failed Hex logins in CI until everyone has logged in again. Developers who never created an account and only fetch public packages have nothing to reset, according to a maintainer quoted by The Hacker News.
- Fetch packages only from repo.hex.pm and not from third-party mirrors until the new signing system ships. If you run an internal artifact proxy, check which upstream it uses (our suggestion).
- When the new client release is out, update it with
mix local.hex --forceand update rebar3 or Gleam if you use them. - If you build Elixir applications: update Ash to 3.38.0 if you use keyset pagination (CVE-2026-124283), and look for places where untrusted data is decoded as an Erlang term. The Hex team plans to document that the decoder involved is only safe for authenticated payloads. Treat emails claiming to come from Hex with care and check that links lead to hex.pm.
DIESEC Perspective
Ask which registries, mirrors and tokens your build pipelines depend on, and who would notice if one of them changed on a Monday evening. The Hex team’s incident post is clear about what was checked and what could not be ruled out, which is more than many disclosures manage.
Not sure which registries and mirrors your build pipelines trust, or which credentials they hold? Contact DIESEC for a rapid build pipeline and supply chain review.
Sources: Hex team | GitHub Security Advisory | SOCRadar | The Hacker News
Published: 2026-11-27 | Category: Supply Chain Security | ~4 min read

