Hex, the widely used package manager for the Elixir and Erlang programming ecosystems, has disclosed a cybersecurity incident involving unauthorized access to its web infrastructure. The security breach, which took place on November 23, stemmed from a vulnerability in the hex.pm platform that allowed malicious actors to execute unauthorized commands. According to the organization, the attack was swiftly detected and contained, with the underlying security defect addressed within a brief 20-minute window.
During the incident window between 18:16 and 18:29 UTC, the attacker transmitted 69 malicious requests, impacting a total of six web servers. Rapid intervention at 18:30 UTC saw Hex replace all production servers on hex.pm with patched versions designed to reject the payload entirely. Network defenses escalated further at 18:33 UTC when a newly deployed firewall rule completely blocked the malicious traffic source. Initial internal reviews indicate no evidence of unauthorized package alterations, database record changes, or persistent attacker access.
Despite the prompt containment, Hex officials have stated that potential unauthorized reads of sensitive database contents cannot be completely ruled out. Potentially exposed data categories include user email addresses, password hashes, API key hashes, active session tokens, second-factor authentication secrets, and system audit logs. Furthermore, the platform noted that read operations for private packages executed from compromised servers would appear indistinguishable from legitimate requests, while standard database and private documentation queries lack logging mechanisms, limiting full visibility into data exposure.
As a precautionary measure following the adversary’s capability to read internal credentials, Hex replaced all operational storage, content delivery network, email, and database credentials, alongside session-signing and access token keys. This mandatory rotation forcefully terminated active user sessions across hex.pm and official client applications. Moving forward, the package manager is developing an advanced registry signing architecture featuring comprehensive key rotation support to harden infrastructure security.
In response to the vulnerability, Hex has strongly advised all account holders to reset their hex.pm passwords and reconfigure their two-factor authentication settings. Users are also cautioned to exclusively fetch packages directly from repo.hex.pm and avoid third-party mirrors while new client iterations are rolled out. Furthermore, due to the potential visibility of email records, community members are urged to exercise heightened vigilance regarding communications purportedly originating from Hex.
Technical analysis revealed that the breach exploited an unauthenticated deserialization vulnerability in untrusted data handling, tracked as CVE-2026-129514 with a maximum CVSS severity score of 10. This critical flaw enabled remote code execution via crafted Erlang external term format requests. Subsequent security assessments identified similar class vulnerabilities in related Elixir components, including the Ash Framework, which issued a patch for CVE-2026-124283, alongside patches released for the db_connection and flop libraries.