Hex, the package manager for Elixir and Erlang, disclosed that it fell victim to a cyberattack involving unauthorized access to its web servers on November 23.
The attackers exploited a vulnerability in hex.pm to execute commands on the platform. The attack was immediately blocked, and the underlying security defect was addressed within 20 minutes. Between 18:16 and 18:29 UTC, the attacker sent 69 malicious requests, affecting six web servers.
At 18:30, Hex replaced all hex.pm servers with patched versions rejecting the payload, and its firewall rule fully blocked the attacker’s traffic at 18:33. “We found no evidence of unauthorized package modifications, database changes, or that the attacker maintained access to our systems,” the package manager explains.
Potential access to database contents, such as email addresses, password hashes, API key hashes, sessions, second factor authentication secrets, and audit logs, cannot be ruled out. While all observed reads of private packages came from Hex servers, any read from a compromised server would appear legitimate. Database and private documentation reads are not logged, hindering visibility into potential data exposure.
The attacker’s commands could read the credentials used by servers, prompting Hex to replace storage, CDN, email and database credentials, as well as the keys that sign sessions and access tokens. This action logged everyone out of hex.pm and Hex clients.
The attackers exploited an unauthenticated deserialization of untrusted data bug tracked as CVE-2026-129514 (CVSS score of 10) that allowed remote code execution via a crafted Erlang external term format request body. Hex discovered that the Ash Framework was also impacted by the same class of vulnerability, patched as CVE-2026-124283 on November 24. Associated defects were also fixed in db_connection (CVE-2026-133555) and flop (CVE-2026-130411).


