---
id: 2026-11-hex-pm-registry-web-servers-command-execution-cve-2026-129514-change-password-reset-2fa
title: "Hex.pm: attacker ran commands on the registry's web servers on 2026-11-23 (CVE-2026-129514); no package changes found; change password, reset 2FA"
date_disclosed: 2026-11-24
last_updated: 2026-11-25
severity: high
status: contained
ecosystems: [hex, elixir, erlang, gleam, registry]
tools_affected: ["hex.pm accounts", "Elixir applications on `ash` 3.31.3 to below 3.38.0 or `db_connection` 1.1.0 to below 2.10.3", "organizations with private Hex packages or private documentation", "Hex clients: mix, rebar3, Gleam", "self-hosted hexpm/hexpm builds from before commit 379b0a2"]
tags: [registry, incident, cve, exploited-in-the-wild, account-data, 2fa-secrets, hex, elixir, contained]
---

## TL;DR

[Hex.pm says](https://hex.pm/blog/security-incident-on-hexpm) an unauthorized party ran commands on its web servers on 2026-11-23 between 18:16 and 18:29 UTC. Hex found no package or database changes. It cannot rule out that email addresses, password hashes, API key hashes and 2FA secrets were read. Change your hex.pm password and reset 2FA. Fetch packages only from repo.hex.pm until the new Hex client ships.

## What happened

Hex.pm is the package registry for Elixir, Erlang and Gleam. Its post is dated 2026-11-24.

| Time (UTC) | Event, per Hex |
|---|---|
| 2026-11-23 18:16 to 18:29 | 69 malicious requests. Commands ran on six web servers. |
| 2026-11-23 18:30 to 18:31 | All web, worker and job servers were recreated from the fixed build. |
| 2026-11-23 19:07 | Hex received an email report describing the same vulnerability. |
| 2026-11-23 20:21 | Most infrastructure credentials were rotated. |
| 2026-11-23 22:58 | Hex reported a personal data breach to IMY, the Swedish data protection authority. |
| 2026-11-24 by 10:42 | Every credential the attacker could have read was rotated, "except the registry signing key and a few low-impact secrets". |
| 2026-11-24 13:48 | CVE-2026-129514 was published. |

What Hex checked and found:

- "We found no evidence of unauthorized package modifications, or database changes, or that the attacker maintained access to our systems."
- All 23 releases published during the incident match an audit log entry. All 62 package files and 186 registry files written since 18:00 match the database.
- Database reads are not logged. Hex "cannot rule out that the attacker accessed data stored in the database, including email addresses, password hashes, API key hashes, 2FA secrets, sessions, and audit logs."
- Direct reads of private packages from storage look like Hex's own servers, and reads of private documentation are not logged. Hex says it will contact affected organizations directly.
- Rotating the session and access-token signing keys logged everyone out of hex.pm and Hex clients.

Hex is not rotating API keys. It says keys are 128-bit random values stored as HMAC-SHA256 hashes. Passwords are hashed with bcrypt, and Hex asks users to change them.

The [CVE record](https://cveawg.mitre.org/api/cve/CVE-2026-129514) comes from the Erlang Ecosystem Foundation CNA. It scores the flaw 10.0 on CVSS 4.0 with exploit maturity `ATTACKED`, and says the code had been affected since 2016-02-23. It lists the open-source `hexpm/hexpm` server as affected before commit 379b0a2. This file rates the incident `high` because Hex found no changed package.

## Am I affected?

- You have a hex.pm account. Hex's steps apply to every account.
- Your organization publishes private packages or private documentation on hex.pm.
- You run your own copy of `hexpm/hexpm` built before commit 379b0a2.
- You fetch Hex packages through a third-party mirror.

## If you are affected

1. Change your password at hex.pm.
2. Reset 2FA at hex.pm/dashboard/security. Hex's steps: under "Authenticator App", choose "Setup New App", verify a code, and store the new recovery codes.
3. Use only repo.hex.pm, not mirrors, until the Hex client with the new signing system is released. Then run `mix local.hex --force`, and update rebar3 or Gleam if you use them.
4. Sign in to Hex clients again. The key rotation ended existing sessions. This step is this file's.
5. Check that links in email claiming to come from Hex lead to hex.pm. Hex asks for suspicious email at security@hex.pm.
6. If you self-host `hexpm/hexpm`, update to a build that includes commit 379b0a2. This step is this file's, from the CVE record.

## Prevention

- Commit `mix.lock` and review changes to it.
- See [package vetting checklist](../prevention/package-vetting-checklist.md) and [credential hygiene](../prevention/credential-hygiene.md).

## Update 2026-11-25: Hex names related flaws in Ash and db_connection, and The Hacker News reports the incident

Hex's post now says it found "the same class of vulnerability in Ash" while investigating and reported it. Two records from the Erlang Ecosystem Foundation CNA cover libraries that Elixir applications install:

| Id | Package and range | Fixed, hex.pm date | CNA score |
|---|---|---|---|
| [CVE-2026-124283](https://cveawg.mitre.org/api/cve/CVE-2026-124283) | `ash` 3.31.3 to below 3.38.0 | 3.38.0, 2026-11-24 | 8.9, `AV:L`, CVSS 4.0 |
| [CVE-2026-133555](https://cveawg.mitre.org/api/cve/CVE-2026-133555) | `db_connection` 1.1.0 to below 2.10.3 | 2.10.3, 2026-11-24 | 8.9, `AV:L`, CVSS 4.0 |

- The Ash record says a forged keyset pagination cursor from a client can lead to code execution or SQL injection. [The Hacker News](https://thehackernews.com/2026/11/hackers-exploited-cvss-100-hexpm-rce.html) reports the Ash advisory's conditions: keyset pagination with a client-supplied cursor, certain sort field types, and a signing secret left at its unset default.
- The Hacker News quotes the DBConnection advisory: the flaw "is not exploitable in db_connection alone". It also reports a third advisory, for Flop, with similar conditions. The Ash, DBConnection and Flop advisory pages were not opened for this file.
- Hex lists further hardening in `plug_crypto`, `plug` and `ecto` as work in progress.
- The registry signing key was not yet replaced when the post was read on 2026-11-25. The advice to fetch only from repo.hex.pm stands until the new Hex client ships.

If you run an Elixir application, upgrade `ash` to 3.38.0 or later and `db_connection` to 2.10.3 or later:

```bash
mix deps.update ash db_connection && mix deps | grep -E "ash |db_connection "
```

## Sources

The vendor and its CNA record, plus one outlet report.

- [Hex.pm: Security incident on hex.pm](https://hex.pm/blog/security-incident-on-hexpm), dated 2026-11-24, read 2026-11-24 with `curl`. Timeline, counts, quotations, user steps. Hex says it will update the post.
- [CVE-2026-129514](https://cveawg.mitre.org/api/cve/CVE-2026-129514): CNA EEF, published 2026-11-24. Score, affected dates and commits. Its mechanism text is not reproduced here.
- [Hacker News item 50629035](https://news.ycombinator.com/item?id=50629035): where the post surfaced, 4 points when read.
- [The Hacker News: Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers](https://thehackernews.com/2026/11/hackers-exploited-cvss-100-hexpm-rce.html), 2026-11-25. Outlet account of the post, and the conditions it reports from the Ash, DBConnection and Flop advisories.
- [CVE-2026-124283](https://cveawg.mitre.org/api/cve/CVE-2026-124283) and [CVE-2026-133555](https://cveawg.mitre.org/api/cve/CVE-2026-133555), CNA EEF, published 2026-11-24. Ranges and scores. Release dates from the hex.pm package API.
- Not opened: the vendor's repository advisory, the EEF CNA page and the two commits the record references.
