On November 23, 2026, an attacker exploited CVE-2026-129514 to run operating-system commands on six Hex.pm web servers. Unauthenticated requests containing crafted Erlang terms passed through a decoder that allowed fake Elixir structs. Error-reporting and inspection code then invoked attacker-selected library behavior, ultimately reaching a database-stream callback that could execute commands. Hex.pm blocked the traffic and deployed a fix within minutes. Its investigation found no evidence of altered packages, database writes, or persistent access, but database reads and access to some stored data cannot be ruled out because they were not logged. Potentially exposed information includes email addresses, password and API-key hashes, two-factor authentication secrets, sessions, and audit logs. The team also identified a related vulnerability in Ash pagination, fixed in Ash 3.38.0.
Hex.pm replaced credentials that affected servers could have accessed, including storage, CDN, email, and database credentials, and rotated session and access-token signing keys, logging users out. It reported the breach to Swedish, US, and EU authorities and is developing a registry-signing system that supports key rotation. Until updated Hex clients are available, users should fetch packages only from repo.hex.pm, not third-party mirrors. Users are also urged to change their Hex.pm password, reset two-factor authentication and save new recovery codes, then update their Hex client and related tools when the release arrives. Because email addresses may have been exposed, users should scrutinize messages claiming to come from Hex and report suspicious ones. Further fixes are planned across Plug Crypto, Plug, Ecto, and DBConnection to prevent similar chains of unsafe struct handling.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.