Hex, the package registry for Elixir, Erlang and Gleam, says an attacker ran commands on its web servers on 23 November. The flaw is tracked as CVE-2026-129514, and the GitHub advisory describes it as unauthenticated remote code execution needing no user interaction.
What happened
Hex’s timeline, in UTC, says the attacker sent 69 malicious requests between 18:16 and 18:29, affecting six hex.pm web servers. Hex blocked the traffic with a firewall rule from 18:27 and replaced every server with a patched build at 18:30 to 18:31. At 19:07 it received a security report describing the same vulnerability. It reported the incident to Sweden’s data protection authority, CISA and ENISA that night, and published the CVE on 24 November.
Hex says it found no evidence of unauthorized package changes, database changes or continued attacker access, and it checked every file written to package storage during the incident. But database reads are not logged, so it cannot rule out that the attacker read email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs.
Because the attacker’s commands could read server credentials, Hex rotated storage, CDN, email and database credentials and the keys that sign sessions and access tokens, which logged everyone out. The registry signing key has not been rotated yet: Hex is building a new signing system with key rotation and new client releases “in the coming days”.
What to do now
- Change your password at hex.pm.
- Reset your 2FA at hex.pm/dashboard/security by choosing “Setup New App” under Authenticator App, then store the new recovery codes.
- Fetch packages only from repo.hex.pm, not third-party mirrors, until the new signing system ships.
- Update the Hex client when that release is out with
mix local.hex --force, and update rebar3 or Gleam if you use them. - Treat emails claiming to be from Hex with care, since addresses may have leaked.
How the bug worked
hex.pm decoded unauthenticated request bodies in Erlang term format with Plug.Crypto.non_executable_binary_to_term/2, which blocks functions and new atoms but let struct values through. Hex says the attacker chained fake structs through error reporting, an Ecto Inspect implementation and a DBConnection.Stream logging option to reach OS command execution. While investigating, Hex found the same class of bug in the Ash framework’s keyset pagination cursors; Ash fixed it in ash 3.38.0 on 24 November as CVE-2026-124283.
Why this matters
If you publish to Hex, do the password and 2FA reset now and pin your builds to repo.hex.pm, the same rotate-first approach we recommended after the LiteLLM PyPI compromise. If you build Elixir apps, upgrade Ash to 3.38.0 or later, and check any endpoint that decodes Erlang terms from untrusted input: Hex’s write-up shows the “non-executable” decoder still let crafted structs reach code paths. As with npm’s publisher-controlled tags, the registry’s signing story is what to watch until the new Hex client lands.

The Campfire
CommentsThanks. Your comment is waiting for the desk. Once it is approved it appears here within about a minute.
Add a comment