Hex.pm, the main package manager for the Elixir and Erlang programming languages, was breached on November 23, and its operators now tell every user to change their password and reset two-factor authentication. According to the Hex.pm incident report, an unauthorized third party exploited a vulnerability that let them run commands on the site's web servers. The team says it blocked the traffic and deployed a fix within 20 minutes, and found no evidence of changed packages. It also says it cannot rule out that the attacker read data from the database. Risky Bulletin covered the incident on November 27.
What happened
Per the incident report, the attacker sent 69 malicious requests to hex.pm between 18:16 and 18:29 UTC. Six web servers were affected, partly because a restart at 18:28 brought up three new servers still running the vulnerable build. A firewall rule was added at 18:27, and all servers were replaced with a patched build by 18:31. The flaw is tracked as CVE-2026-129514, and Risky Bulletin says it received the maximum severity score of 10 out of 10.
The Hex team traces the root cause to a request decoder. Hex.pm decoded unauthenticated request bodies in Erlang's binary format using a function meant to block harmful terms, but the check let through "struct" values, which are maps with a special key. The report describes a chain of steps in which crafted structs triggered an error, error reporting then inspected the data, and that led through two libraries to the execution of attacker-chosen commands. The git history shows the safety check was removed on February 23, 2016, so the weakness was present for about a decade, according to the team.



