Hex.pm security incident: remote command execution flaw, CVE-2026-129514
On 23 November 2026, an unauthorized third party exploited a vulnerability in Hex.pm that let them run commands on the web servers. The team blocked the traffic and deployed a fix within 20 minutes; the vulnerability, tracked as CVE-2026-129514[1], let unauthenticated requests reach remote command execution (RCE)[2] because the server decoded request bodies in Erlang term format and accepted struct values that could be chained together.
The team found no evidence of unauthorized package or database changes, or that the attacker kept access. Because database reads are not logged, it cannot rule out access to email addresses, password hashes, API key hashes, 2FA secrets[3], sessions and audit logs. All credentials the attacker could have read were replaced, which logged everyone out of hex.pm and Hex clients.
Users should change their password, reset 2FA, and treat emails claiming to come from Hex with care, forwarding suspicious ones to security@hex.pm. A fix that rejects maps with a __struct__ key is deployed, and a new registry signing system with key rotation is being built, with new Hex client releases expected in the coming days. Until then, users should fetch packages only from repo.hex.pm and not trust third-party mirrors[4]. The team also reported the incident to IMY, CISA and ENISA, and the Ash team released a fix for a related flaw, CVE-2026-124283, in ash 3.38.0 on 24 November.
Read the original hex.pmDiscussion
Discussion
Commenters compare the flaw to CVE-2013-0156, a 2013 Rails remote code execution bug, and praise the speed and clarity of the response. One commenter argues that passing Erlang terms over the network is unsafe and that JSON is the better choice, while another hopes languages will settle on a few common formats.
Links from the post and discussion
Sources
-
Hex
Security incident on Hex.pm

