Friday, November 27, 2026
News

Hex.pm breach: do you need to reset your password and 2FA?

Hex found no evidence of changed packages, but it can't rule out that account data was read. The flaw is CVE-2026-129514, scored 10.0.

a computer keyboard with a padlock on top of it

Yes. After the Hex.pm breach of November 23, Hex asks users to change their password and reset two-factor authentication (2FA). An attacker ran commands on its web servers. Hex found no evidence of changed packages but can't rule out that account data in its database was read.

What happened in the Hex.pm breach?

An unauthorized party exploited a flaw in hex.pm, the package service for Elixir and Erlang, and ran commands on its web servers. Hex's account, published November 24, counts 69 malicious requests between 18:16 and 18:29 UTC on November 23, with six servers affected.

Hex says the block and the fix took less than 20 minutes, and by 18:31 UTC its whole server fleet had the corrected code. Hex reported a personal data breach to IMY, Sweden's data protection authority, and also reported the incident to CISA in the US and notified ENISA in the EU.

What data could the attacker have read?

Hex can't rule out access to stored email addresses or audit logs, to hashes of passwords and API keys, or to 2FA secrets and login sessions. Database reads aren't logged, so there's no record that would settle it either way.

Hex also can't fully rule out reads of private packages. The reads it saw during the incident came from its own servers and matched releases those organizations published at the time, but a read from a compromised server would look the same. Reads of private documentation aren't logged. Hex says it will contact affected organizations directly, and warns users to check that links in emails claiming to come from Hex lead to hex.pm.

Were any Hex packages changed?

Hex found no evidence of unauthorized package changes, database changes or lasting access. It compared the 23 releases made while the attack was under way with its audit log and found each one accounted for. Older releases stayed as they were. The 62 package files written since 18:00 UTC also match the checksums held in the database, but Hex had no saved checksums for documentation archives.

The attacker's commands could read the credentials the servers used, including those for storage, email and the database. Hex replaced those. It also changed the signing keys behind login sessions and access tokens, so every user was signed out of the site and Hex clients. As of its November 24 timeline, one important secret hadn't changed: the key that signs the package registry. A few minor ones were also pending. Hex is still building a replacement signing system in which keys can be rotated.

What is CVE-2026-129514?

CVE-2026-129514 is an unauthenticated remote code execution flaw in how hex.pm decoded request bodies sent in Erlang's term format. The record from the Erlang Ecosystem Foundation's numbering authority scores it 10.0, or critical, and says it was exploited on November 23.

The decoder blocked many dangerous inputs but let Elixir struct values through, and a chain of those values ended in an operating system command. The weakness had been present since 2016. Hex also reported the same class of flaw in the Ash framework, which fixed it in version 3.38.0 on November 24 as CVE-2026-124283. If your applications use Ash, that update is yours to install.

What should Elixir and Erlang teams do now?

Secure every Hex account first, then lock down where builds fetch packages. Hex's guidance covers the account, email and package steps below, and the Ash update is our addition based on the fix it reported.

  • Change your password at hex.pm.
  • Reset 2FA from the security page of your dashboard by setting up the authenticator app again, and store the new recovery codes.
  • Point builds only at repo.hex.pm and stop using third-party mirrors until the new client releases ship.
  • Once they're out, run mix local.hex --force. Rebar3 and Gleam users should upgrade those tools too.
  • Forward suspicious emails that claim to come from Hex to security@hex.pm.
  • Update Ash to 3.38.0 or later if you use it.

Hex sees no need to rotate API keys over the possible exposure of their hashes, since the keys are 128-bit random values. It says hashing doesn't stop a weak password being guessed and asks users to change theirs. We'd make the new one strong and unique.

Related: the poisoned Microsoft agent-framework packages on PyPI, customer checks after the 1Password breach.