Technology reviews & practical guides
An attacker ran commands on six hex.pm servers on Nov 23 via CVE-2026-129514 (CVSS 10.0). No packages were tampered with, but the signing key is not yet rotated.

Hex.pm, the package registry behind Elixir, Erlang and Gleam, was breached on November 23, 2026. An attacker used an unauthenticated remote code execution flaw, now tracked as CVE-2026-129514 with a CVSS 4.0 score of 10.0, to run operating system commands on six hex.pm web servers. The bug had been live in the registry's code since February 23, 2016.
Hex blocked the traffic and deployed a fix in about 20 minutes, and it says it found no tampered packages. But it cannot rule out that the attacker read user email addresses, password hashes, 2FA secrets and the registry signing key, and that signing key has not been rotated yet. As of November 28 the new Hex client that Hex promised has not shipped, so every Elixir, Erlang and Gleam developer with a hex.pm account still has steps to take now.
According to Hex's incident report, "Security incident on hex.pm", published November 24 by Peter Ullrich, Jonatan Männchen and Eric Meadows-Jönsson, the attacker's first request of any kind arrived at 18:14:21 UTC. Between 18:16 and 18:29 UTC, 69 malicious requests hit six web servers. Hex explains why the number is six: "Six servers were hit because a restart at 18:28 brought up three new servers still on the vulnerable build."
The attack was noticed through error reporting: "our error tracker Sentry recorded its first error at 18:16:00". The attacker had also prepared in advance. Hex writes: "We found repeated downloads of hex.pm's own dependencies which suggests the attacker built a local copy of hex.pm to test against." BreachNews dates those downloads to November 19.

No threat actor has been named and nobody has claimed the attack.
The CVE record from the Erlang Ecosystem Foundation's CNA titles the flaw "Unauthenticated remote code execution through struct values in Erlang term request bodies". It is classed as CWE-502, deserialization of untrusted data, and affects hex.pm from 2016-02-23 until the fix on 2026-11-23, in the modules HexpmWeb.ErlangFormat.decode/1 and HexpmWeb.PlugParser.parse/5.

hex.pm accepts request bodies in the application/vnd.hex+erlang content type and decoded them with Plug.Crypto.non_executable_binary_to_term/2. That function blocks functions and the creation of new atoms, but it still allowed maps carrying a __struct__ key, which Elixir treats as structs. The parser runs before routing and authentication, so any unauthenticated POST request reached it.
From there, the GitHub advisory describes a gadget chain. Error reporting called inspect on the forged structs. A chain through Ecto.Query.DynamicExpr wrapping a DBConnection.Stream with a :log option then ran an attacker-chosen module, function and arguments via apply/3, which gave OS command execution as the user running the BEAM process. The advisory says this let an attacker read the application's environment, "including database URL, storage credentials, and the registry signing key".
The patch is commit 379b0a2, "Refuse structs in Erlang term request bodies", committed by Eric Meadows-Jönsson on November 23. It touches two files with 32 lines added and one removed. Decoding now fails with HTTP 400 if any map anywhere in the submitted term has a __struct__ key.

The bug was in the hex.pm server (the hexpm/hexpm project), not in the Hex client or in any package. Hex has already patched it, so there is no package for users to update to fix CVE-2026-129514 itself. Hex also plans hardening in plug_crypto, plug, ecto and db_connection; the db_connection part is tracked as CVE-2026-133555.
Hex says: "We found no evidence of unauthorized package modifications, or database changes". All 23 releases published during the incident match audit log entries, and "All 62 package files written since 18:00 match the checksums in our database, and all 186 registry files written since 18:00 match the database contents." A database restored from 18:13:59 was compared row by row, no shells were found, and cloud audit logs show no new keys, accounts or attacker API calls.
The limits are just as important. Database reads, environment variable reads and shell commands are not logged, so Hex cannot rule out that the following were read:

Documentation archives have no stored checksum, so they could not be verified the same way packages were. One worker "peaked at 0.47 MB/s against a usual maximum of 0.29 MB/s". Hex says: "We will contact affected organizations directly."
Hex rotated storage, CDN, email and database credentials plus the keys that sign sessions and access tokens, which logged out every hex.pm and Hex client user. The registry signing key, which the advisory says was readable, has not been rotated. Hex is building a new registry signing system that supports key rotation. Until the new client ships, a registry served from somewhere other than repo.hex.pm cannot be trusted on the strength of that signature alone.
These steps come from Hex's incident report:

mix local.hex --forceAPI keys are not being force-rotated. Hex says they are 128-bit random values stored as HMAC-SHA256 hashes. Hex has only said the new client releases will ship "in the coming days". As of November 28, the latest release on the hexpm/hex GitHub releases page is still v2.7.0 from November 6, with nothing about the incident or signing keys.
More in Tech News
Browse Tech News