Attackers ran commands on six Hex.pm web servers on November 23. Hex, the package registry for Elixir and Erlang, says it blocked the traffic and deployed a fix within 20 minutes.
The attacker sent 69 malicious requests between 18:16 and 18:29 UTC. The flaw, CVE-2026-129514, carries a CVSS score of 10 and let anyone run server commands without signing in. It exploited unsafe handling of Erlang-format data, and the weakness dated to February 2016.
“On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm that let them run commands on our web servers. We blocked the traffic and deployed a fix within 20 minutes. Shortly afterwards we received a report of this exact vulnerability.” reads the security incident notice. “We found no evidence of unauthorized package modifications, or database changes, or that the attacker maintained access to our systems.”
Hex found no evidence of changed packages or database records, or lasting access. It can’t rule out data theft because it doesn’t log database reads.
The exposed data may include email addresses, password and API key hashes, two-factor authentication (2FA) secrets, session data and audit logs. Hex cannot rule out that attackers also accessed private packages or documentation. The company says it will contact affected organizations.
Because the attacker may have accessed server credentials, Hex replaced several secrets used for storage, content delivery, email, databases and session signing. It also logged out all users. The registry signing key still needs to be replaced. Hex is developing a new signing system and plans to release updated clients soon.
Users should change their Hex.pm passwords and set up a new authenticator entry at hex.pm/dashboard/security. They should also save the new recovery codes. When the updated client becomes available, users should install it. Hex also advises checking that links in its emails point to hex.pm. According to the company, API keys do not need to be replaced.
“we reviewed how hex.pm generates and stores secrets. API keys are 128-bit random values stored as HMAC-SHA256. We consider 128 bits of randomness far beyond the reach of brute force, so we don’t see a need to rotate API keys because of the exposed hashes.” continues the notice. “Passwords are hashed with bcrypt, which slows guessing but doesn’t prevent it for a weak password, so we ask you to change yours.”
During the investigation, researchers found a similar vulnerability in Ash’s keyset pagination, which could allow attackers to execute commands or inject SQL through specially crafted cursors. The issue was fixed in Ash 3.38.0, released on November 24, 2026, and is tracked as CVE-2026-124283.
Hex reported the breach to Swedish, US and EU authorities.
“We already deployed fixes for the vulnerability and are working on further hardening fixes.” concludes the notice.
Follow me on Twitter: @securityaffairs and Facebook and Mastodon
(SecurityAffairs – hacking, Hex.pm)