Incidents

An attacker ran commands on hex.pm's servers on 23 Nov 2026 through a flaw in its request decoder, fixed within 20 minutes. No package tampering found, but account data may have been read. If you have a hex.pm account, change your password and reset 2FA. https://tldrcve.com/hexpm-break-in/

Hex (hex.pm), the package manager for the Erlang ecosystem · CVE-2026-129514

hex.pm break-in

IncidentEntry point knownCommands ran on hex.pm servers. Data may have been read.

TL;DR

An attacker ran commands on hex.pm's servers on 23 Nov 2026 through a flaw in its request decoder, fixed within 20 minutes. No package tampering found, but account data may have been read. If you have a hex.pm account, change your password and reset 2FA.

More details

Any unauthenticated POST with Hex's Erlang term content type could slip fake Elixir structs past its decoder; when error reporting inspected them, a chain through Ecto and DBConnection ran OS commands. The flaw dated from 23 Feb 2016, the attacker sent 69 requests and hit six web servers, and a security report describing the same bug reached hex.pm at 19:07 UTC, after the attack. While investigating, hex.pm found the same class of bug in Ash's keyset pagination (CVE-2026-124283).

How bad is it?

updated 25 Nov
  • Yes: Confirmed on the record1,2
  • Partly: Data exposed; what was taken is unclear1
  • Partly: May have reached others1
  • Yes: How they got in is known1,2,3
  • Partly: Partly contained1,3

Scare-o-meter

Serious

Sensitive data exposed, others may be hit, or still unexplained.

What's confirmed

  • On the record The safety check in hex.pm's request decoder is removed (commit ab1bbce), the start of the affected range.1,2
  • On the record 18:16 to 18:29 UTC: the attacker sends 69 malicious requests and runs commands on six hex.pm web servers. Three of them were new servers that a restart at 18:28 brought up on the vulnerable build.1
  • On the record 18:27 UTC: hex.pm adds a firewall rule (in full effect by 18:33); by 18:31 every server runs a patched build that rejects the payloads.1
  • On the record 19:07 UTC: hex.pm receives an emailed security report describing the same vulnerability.1
  • On the record hex.pm rotates most infrastructure credentials by 20:21 UTC and reports a personal data breach to IMY, Sweden's data protection authority, and the incident to CISA and ENISA.1
  • On the record Ash ships 3.38.0 with a fix for the related bug. By 10:42 UTC every credential the attacker could have read is rotated except the registry signing key and a few low-impact secrets. At 13:48 UTC hex.pm publishes CVE-2026-129514 and the GitHub advisory.1,2,3

Root cause

Flaw in the provider's own serviceZero-day: no patch existed

A flaw in hex.pm's own server code (the open-source hexpm project), attacked before any fix or advisory existed. The decoder for application/vnd.hex+erlang request bodies ran before routing and login checks and let through maps with a __struct__ key, which the attacker chained into OS command execution. The fix, commit 379b0a2, rejects any such map with a 400.1,2,3,8

Were you hit? only if all are true

1You have a hex.pm account

hex.pm found no package changes, no database changes and no lasting access, but database reads aren't logged, so it can't rule out that the attacker read email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs. For organisations with private packages, reads of private documentation aren't logged and a read from a compromised server would look like hex.pm's own; hex.pm says it will contact affected organisations directly.1

Clean up

1Change your hex.pm password

Passwords are stored as bcrypt hashes, which slow guessing but don't stop it for a weak password. hex.pm also replaced the keys that sign sessions and access tokens, which logged everyone out of hex.pm and Hex clients. It doesn't ask you to rotate API keys: they are 128-bit random values stored as HMAC-SHA256, which it considers beyond brute force.1

2Reset your 2FA

At hex.pm/dashboard/security, under "Authenticator App", choose "Setup New App" and verify a code from the new entry. You get a new secret and new recovery codes, so store the new codes. hex.pm says this works even when an organisation requires 2FA, where turning 2FA off is refused.1

3Fetch only from repo.hex.pmcommand

The attacker could read the server's environment, which held the registry signing key, and hex.pm hadn't rotated that key by 10:42 UTC on 24 Nov 2026. It is building a new signing system that supports key rotation, with new Hex client releases "in the coming days". Until then, don't trust third-party mirrors. Once that release is out, update Hex with this command, and update rebar3 or Gleam if you use them. No version or date has been announced; the newest Hex client release on 25 Nov 2026 is still v2.7.0 from 6 Nov. We'll check again by 1 Dec 2026.1,3,7

mix local.hex --force
4Watch for fake Hex emails

Because email addresses may have been exposed, hex.pm says to be careful with emails that claim to come from Hex, check that their links lead to hex.pm, and forward suspicious ones to security@hex.pm.1

5Ash or Flop users: update

While investigating, hex.pm found that Ash's keyset pagination accepted crafted structs in client-supplied cursors, which could lead to command execution or SQL injection (CVE-2026-124283). It affects ash 3.31.3 up to, but not including, 3.38.0, released 24 Nov 2026. A related record, CVE-2026-133555, covers the db_connection struct used in the chain; it says it's not exploitable in db_connection alone and is fixed in 2.10.3, which hex.pm's post still listed as hardening work in progress. The db_connection record also links CVE-2026-130411, the same kind of bug in Flop's pagination cursors, which hex.pm's post doesn't name: it affects flop 0.8.0 before 0.26.7, 0.27.0 before 0.27.3, 0.28.0 before 0.28.1 and 0.29.0 before 0.29.2.1,5,6,9

6Self-hosting the hexpm server

The flaw is in the open-source hexpm server. If you run your own copy, every build from commit ab1bbce up to the fix is affected; update to a build that includes commit 379b0a2.2,8

This page shows what's known so far. It can't tell you you weren't hit.

Sources (9) and changelog
  1. hex.pm: security incident post, timeline, what may have been read, what users should do, the Ash bug 24 Nov
  2. CVE record: CVE-2026-129514, assigned by the EEF, unauthenticated, exploited against hex.pm on 23 Nov, affected hexpm commits 24 Nov
  3. GitHub advisory GHSA-9pmm-hf4r-27pg: the attack chain, the fix, environment holds the registry signing key 24 Nov
  4. CISA KEV catalog: CVE-2026-129514 not listed (catalog version 2026.11.24)
  5. CVE record: CVE-2026-124283, Ash keyset pagination cursors, affects 3.31.3 to before 3.38.0 24 Nov
  6. CVE record: CVE-2026-133555, db_connection stream structs, not exploitable alone, fixed in 2.10.3 24 Nov
  7. GitHub: Hex client releases, newest is v2.7.0 from 6 Nov
  8. GitHub: hexpm fix commit 379b0a2, refuse structs in Erlang term request bodies 23 Nov
  9. EEF CNA: CVE-2026-130411, Flop pagination cursors, affected and fixed versions 24 Nov