Hex, the Elixir and Erlang package registry, says an attacker ran commands on its web servers
A critical deserialization flaw let an attacker hit six hex.pm servers. Hex found no tampered packages but cannot rule out that database contents were read.
Hex, the package manager and registry used by the Elixir and Erlang ecosystems, has disclosed that an attacker gained code execution on its web servers through a flaw in hex.pm.
What happened
According to Hex, on November 23 the attacker sent 69 malicious requests over about 13 minutes, reaching six web servers. Hex replaced all hex.pm servers with patched versions shortly afterwards and blocked the attacker's traffic with a firewall rule within minutes.
The bug, tracked as CVE-2026-129514 and rated CVSS 10, is an unauthenticated deserialization issue: hex.pm accepted request bodies in Erlang's external term format and decoded them unsafely, allowing remote code execution. The same class of bug was found and fixed in the Ash Framework (CVE-2026-124283), and related fixes landed in the db_connection and flop libraries.
What may be exposed
Hex says it found no evidence of modified packages, database changes or lasting attacker access. However, reads from its database and private documentation are not logged, so it cannot rule out that the attacker saw email addresses, password hashes, API key hashes, sessions, two-factor secrets and audit logs. The attacker could also read server credentials.
Response
Hex rotated its storage, CDN, email and database credentials as well as the keys used to sign sessions and access tokens, which logged every user out of hex.pm and the Hex client. It says it is building a package-signing system with key rotation.
- Change your hex.pm password and reset two-factor authentication.
- Treat emails that claim to come from Hex with caution and check links point to hex.pm.
- Until updated clients ship, fetch packages only from repo.hex.pm, not third-party mirrors.
Who's affected
Elixir and Erlang developers with hex.pm accounts, organizations publishing private packages, and apps using Ash, db_connection or flop.
What to do
Reset your hex.pm password and 2FA, regenerate API keys, use only repo.hex.pm for now, and update Ash Framework, db_connection and flop to patched releases.