Security incident on Hex.pm
On November 23, 2026, an attacker exploited a vulnerability in Hex.pm, a package manager, to run commands on its web servers. The intrusion was detected quickly, and the system was secured within 20 minutes of discovery. Shortly after, Hex received reports of the same vulnerability, but no evidence was found of unauthorized package modifications or database changes.
However, due to the lack of database read logs, it cannot be completely ruled out that the attacker accessed sensitive data, including email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions, and audit logs.
Hex took immediate action to address the issue by replacing all credentials used by its servers, including storage, CDN, email, and database credentials, as well as keys that sign sessions and access tokens. This action logged everyone out of Hex and Hex clients. To prevent future attacks, Hex is developing a new registry signing system that supports key rotation. Until the new system is released, users are advised to fetch packages only from repo.hex.pm and avoid trusting third-party mirrors.
The vulnerability in Hex.pm is tracked as CVE-2026-129514. A separate vulnerability was discovered in Ash, another library used by Hex, which could also lead to command execution or SQL injection through crafted Struct values. Ash developers released a fix for this vulnerability in version 3.38.0 on November 24. Hex has implemented a check to reject any term containing a map with a __struct__ key, thereby closing the entry point for potential attacks. All Hex servers were updated to the patched build by 18:31 UTC.
Hex is working on hardening fixes for these libraries to prevent similar attacks in the future. These improvements will target multiple levels of security, not just one decoder check in the request pipeline. Hex acknowledges the inconvenience caused by these precautions and encourages users to report any security concerns to security@hex.pm. The company apologizes for the disruption and promises to provide updates on their ongoing investigation.
Rewritten by urgent.news; may contain errors — check the original.
Source: hex.pm