Hex.pm breach: CVE-2026-129514 RCE and what to reset

Attackers ran commands on Hex.pm servers through CVE-2026-129514. What data may be exposed, what to reset and the related Ash fix in 3.38.0.

CVE-2026-129514: Registry servers hit, reset your credentials

TL;DR: Attackers used an unauthenticated remote code execution flaw, CVE-2026-129514, to run commands on Hex.pm web servers, and the registry says it cannot rule out data theft. If you have a Hex.pm account, change your password and set up your authenticator again. If you use the Ash framework, upgrade to 3.38.0 for a related flaw.

What happened

Security Affairs reported on November 30, 2026 that an unauthorised party exploited Hex.pm, the registry that Elixir and Erlang developers pull packages from, on November 23. The attacker ran commands on six web servers. The registry team blocked the traffic and shipped a fix quickly, and says it found no sign of changed packages or database records.

The flaw is a deserialization bug. The NVD record for CVE-2026-129514 describes an unauthenticated attacker sending a crafted Erlang external term format body to a request parser that runs before routing and sign-in, which leads to operating system command execution. The record gives a CVSS v4.0 score of 10 and lists the weakness as CWE-502.

Because the registry does not log database reads, it cannot exclude theft of stored data. The exposed data may include email addresses, hashes of passwords and API keys, two-factor secrets, session data and audit logs. The registry replaced several internal secrets and signed every user out. Its signing key still has to be replaced, and updated clients are planned.

The investigation also turned up a similar bug in Ash, an Elixir framework. The NVD record for CVE-2026-124283 says a forged pagination cursor can lead to command execution or SQL injection. The affected releases run from 3.31.3 up to, but not including, 3.38.0, and the flaw carries a CVSS v4.0 score of 8.9.

Am I affected?

You are affected if you have a Hex.pm account, because your stored account data may have been read. Do these things:

  • Change your Hex.pm password and set up a new authenticator entry.
  • Save the new recovery codes.
  • Install the updated client when the registry publishes it.
  • Check that links in emails claiming to come from the registry point to hex.pm.

The registry says API keys do not need rotating, because they are long random values and only hashes may have been exposed. Follow its incident notice for later changes. If your applications use Ash, check the version in your lock file and upgrade to 3.38.0 or later. Test pagination and sorting afterwards.

No public report says that a package you downloaded was altered. Still, if your build pulls Elixir or Erlang dependencies, review your lock files and watch the registry's notice for guidance on the signing key change.

How to check with Stackurity

Stackurity cannot tell you whether your Hex.pm account data was read, so the password and authenticator steps above are yours to do. For the Ash flaw, repository scans can read Hex projects when the Hex stack pack is enabled, and match the libraries they find against public advisories. Our stack packs documentation explains how to enable it. The NVD record for the Ash flaw did not list affected versions when we read it, so confirm the version by hand as described above. After you upgrade, Stackurity scans again and records whether the finding is gone.

Start a free trial of Stackurity