Thirteen minutes of commands on six Hex.pm servers: anyone with an account on the Elixir and Erlang package registry needs to renew their password and two-factor authentication
A flaw in the way the registry read incoming data gave an attacker free rein; maintainers say packages were not altered, but data being read cannot be ruled out.
An attacker was able to run commands on six web servers of Hex.pm, the package registry for Elixir, Erlang and Gleam, on 23 November. The maintainers disclosed the incident a day later on their blog and on Elixir Forum. According to the timeline summarised by SOCRadar, the first malicious request arrived at 18:16 UTC and the last at 18:29, with 69 requests counted in total. Within a quarter of an hour a patched version was running everywhere, and most infrastructure credentials were replaced that evening.
The flaw, CVE-2026-129514, received the maximum score of 10. Ostorlab explains that the server decoded messages in the binary Erlang format before any authentication or routing took place. A check meant to block fake structs disappeared from the code in 2016. That let an attacker use a chain of existing functions to eventually run a function of their choice. The fix now rejects such structs with an error. The client, such as mix hex and rebar3, is not affected.
The maintainers found no sign of altered packages or database records: the 23 releases published during the incident were checked. Because database reads are not logged, they cannot rule out that email addresses, password hashes, API key hashes and two-factor secrets were viewed. The key the registry uses to sign package listings was also readable by the compromised process. A new signing system with key rotation and an updated client have been announced; until then they advise using only repo.hex.pm and no third-party mirrors.
Users with an account must change their password, set up two-factor authentication again and sign their client in again. People who only fetch dependencies without an account are not affected, the maintainers said on the forum. In the same round the Ash, db_connection and flop libraries also received security updates, Andrew Nesbitt's package management newsletter reports.