Cybersecurity
An attacker ran commands on six Hex.pm servers on November 23. The team found no changed packages, but says it cannot rule out reads of email addresses, password hashes and 2FA secrets, and asks all users to reset both.

Keep exploring
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.
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.
The team found no unauthorized package changes or database changes. It restored a database copy from before the first malicious request and compared every row with the live database, and it says all 23 releases published during the incident match its audit log. But database reads are not logged, so it cannot rule out access to email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs. It says a read of private packages from a compromised server would look like its own, so one cannot be fully excluded, and it will contact affected organizations directly. API keys are 128-bit random values stored as HMAC-SHA256 hashes, which the team considers out of reach of brute force. Passwords use bcrypt, which slows guessing but does not stop it for weak passwords.
The attacker's commands could read the credentials the servers use, so the team replaced the storage, CDN, email and database credentials and the keys that sign sessions and tokens. That logged everyone out of hex.pm and Hex clients. The team reported a personal data breach to Sweden's data protection authority and told CISA and ENISA.
The report asks users to change their hex.pm password, reset 2FA from the account security page (which issues a new secret and new recovery codes), and update the Hex client when a release with a new signing system arrives in the coming days. Until then, it says to avoid third-party mirrors and fetch packages only from repo.hex.pm. Because email addresses may have been exposed, users should be careful with emails that claim to come from Hex and check that links lead to hex.pm. Suspicious emails can be forwarded to security@hex.pm.
While investigating, the team found the same class of flaw in Ash, an Elixir framework. Its keyset pagination accepted crafted structs in client-supplied cursors, which could lead to command execution or SQL injection. The Ash team released a fix in version 3.38.0 on November 24, tracked as CVE-2026-124283. Developers using Ash should check their version.
Watch for the new Hex client release with key rotation, the hardening fixes planned for plug_crypto, plug, ecto and db_connection, and any updates to the incident report. The team says it will update the post as its investigation continues.
Package managers sit at the root of the software supply chain, so a breach there worries every project that depends on them. The good news is that the team shows its checks in detail and found no changed packages. The warning is that a decade-old safety check, removed years ago, still opened the door. This article summarizes the operators' own report and a news bulletin, and it is not security advice for your specific systems.
Cover image: The Elixir programming language logo, listed as public domain on Wikimedia Commons. The Elixir name and logo are trademarked, and the image only identifies the ecosystem, with no endorsement implied.