---
title: "Hex.pm breach: 69 requests in 13 minutes ran commands; every user logged out"
summary: "Hex’s incident report of 24 November: how a flaw present since 2016 let an attacker run commands on the Elixir and Erlang package registry, what may have been read, and what to do."
url: https://www.thetechbag.com/blog/hex-pm-breach-69-requests-13-minutes-users-logged-out
format: Note
desk: "Security"
area: "Threats & vulnerabilities"
region: Global
published: 2026-11-28
published_at: 2026-11-28T19:29:00+05:30
facts_checked: 2026-11-28
author: TechBag (The TechBag Journal)
tags: ["Hex.pm breach","hex.pm security incident","Hex.pm hack","CVE-2026-129514","Hex package manager","Elixir","Erlang","Gleam","rebar3","mix local.hex","remote code execution","deserialization vulnerability","package registry","software supply chain","registry signing key","2FA reset"]
cover: https://www.thetechbag.com/blog/covers/hex-pm-breach-69-requests-13-minutes-users-logged-out.png
---

# Hex.pm breach: 69 requests in 13 minutes ran commands; every user logged out

*Hex’s incident report of 24 November: how a flaw present since 2016 let an attacker run commands on the Elixir and Erlang package registry, what may have been read, and what to do.*

Note · Security · Threats & vulnerabilities · By TechBag · Published 2026-11-28 · Facts checked 2026-11-28 · Canonical: https://www.thetechbag.com/blog/hex-pm-breach-69-requests-13-minutes-users-logged-out

The short version

1. On 23 November an attacker ran commands on six hex.pm web servers with 69 requests in 13 minutes; every server ran a patched build by 18:31 UTC.[1]
2. Hex found no changed packages or database rows, but cannot rule out reads of email addresses, password hashes, API-key hashes, 2FA secrets and sessions.[1]
3. Change the hex.pm password, reset 2FA, fetch only from repo.hex.pm, and run `mix local.hex --force` once the client with a new signing system ships.[1]

An attacker sent 69 malicious requests to hex.pm between 18:16 and 18:29 UTC on 23 November and ran commands on six of its web servers, the team behind the package registry for Elixir, Erlang and Gleam said on 24 November. Hex blocked the traffic and deployed a fix “within 20 minutes”, and it replaced the credentials its servers use, which logged everyone out of hex.pm and of the Hex clients. Because database reads are not logged, Hex “cannot rule out” that the attacker read email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs.[1] The flaw, CVE-2026-129514, carries a CVSS 4.0 score of 10, the maximum, and its record says it “was actively exploited against the hex.pm service”.[2]

69

malicious requests, 18:16 to 18:29 UTC on 23 November

Hex

6

web servers where the attacker’s commands ran

Hex

10

CVSS 4.0 score of CVE-2026-129514, the maximum

CVE record

27,339

packages on hex.pm, read on 28 November

hex.pm

## Thirteen minutes, and a flaw from 2016

hex.pm accepted request bodies in Erlang’s own binary format and decoded them before routing and authentication, so any anonymous POST reached the decoder. The decoder blocked functions but let through maps that pose as Elixir structs. When such a request failed, the error reporting inspected it, and the fake struct chose which code ran next: through two libraries, Ecto and DBConnection, the chain reached a function call taken from the request itself, and from there operating-system commands. Git history shows the safety check was removed on 23 February 2016.[1][2] Six servers were hit, not three, because a restart at 18:28 brought up three new servers still on the vulnerable build.[1]

**Figure: Fifteen minutes from the first exploit request to a patched fleet; the registry signing key is still to be replaced**

*Hex.pm’s incident, 23 and 24 November 2026, as Hex gives it (UTC)*

| Date | Event | Detail |
| --- | --- | --- |
| 23 Nov, 18:16 UTC | First exploit request | Sentry records the first of 69 errors at 18:16:00 |
| 23 Nov, 18:27 UTC | Firewall rule added | Full effect between 18:30 and 18:33 |
| 23 Nov, 18:29 UTC | Last exploit request | The last to reach a server, at 18:29:33 |
| 23 Nov, 18:31 UTC | Every server patched | All web, worker and job servers rebuilt from the fix between 18:30 and 18:31 |
| 23 Nov, 19:07 UTC | Outside report arrives | An emailed security report describes the same flaw |
| 23 Nov, 22:58 UTC | Breach reported | To IMY, Sweden’s data protection authority; CISA and ENISA follow by 23:26 |
| 24 Nov, 10:42 UTC | Credentials rotated | Everything the attacker could have read, except the registry signing key and a few low-impact secrets |
| 24 Nov, 13:48 UTC | CVE published | CVE-2026-129514 |

Source: Hex, Security incident on hex.pm (24 Nov 2026); CVE-2026-129514 record · as of 28 November 2026, 7:15pm IST

## What Hex checked, and what it cannot see

Hex restored a copy of its database from 18:13:59, before the attacker’s first request, and compared every row of every table with the live one; every change was explained by an audit-log entry, a background job or its own response. All 23 releases published during the incident match its audit log, and all 62 package files and 186 registry files written since 18:00 match the database. It found no shells on the servers and no new cloud keys or accounts.[1]

What it cannot check is reads. Passwords are stored as bcrypt hashes, which slow guessing but do not stop it for a weak password, so Hex asks everyone to change theirs. API keys are 128-bit random values stored as HMAC-SHA256, and Hex says it sees no need to rotate them because of the exposed hashes. Private-package reads in the window came from its own servers, though a read from a compromised server would look the same; Hex will contact affected organisations directly.[1]

The signing key is the open item. Every registry file is signed with the repository’s private key, and the client checks it against the public key before trusting a package list.[3] Hex is building a signing system that supports key rotation, with new client releases “in the coming days”; until then it says not to trust third-party mirrors.[1] On 28 November the post was unchanged and the newest Hex client was still version 2.7.0, of 6 November.[1][5]

## What a developer or team does

- **Change your password** at hex.pm.
- **Reset 2FA** at hex.pm/dashboard/security: under “Authenticator App”, choose “Setup New App” and verify a code. That gives a new secret and new recovery codes, and works where an organisation requires 2FA.
- **Fetch packages only from repo.hex.pm**, not mirrors, until the new client is out; then run `mix local.hex --force`, and update rebar3 or Gleam if you use them.
- **Treat emails that claim to come from Hex with care**: check that links lead to hex.pm, and forward suspicious ones to security@hex.pm.[1]

The registry is large: hex.pm lists 27,339 packages and counted 8,437,397 downloads on 27 November.[4] Developer platforms were the way in elsewhere this month too: [4,837 hijacked GitHub accounts](https://www.thetechbag.com/blog/github-4837-hijacked-accounts-61764-repos-ci-secrets) probed 61,764 repositories for CI secrets.

How we did this

Figures as of 28 November 2026, 7:15pm IST

Every fact about the incident is Hex’s own, from its post of 24 November, which names three authors and was unchanged when we read it on 28 November. Times are UTC, as Hex gives them. “13 minutes” is Hex’s window of 18:16 to 18:29; the 15 minutes from the first exploit request to a fully patched fleet (18:16 to 18:31) is our arithmetic. The score of 10 is the CVSS 4.0 base score in the CVE record published by the Erlang Ecosystem Foundation’s numbering authority. The package and download counts are hex.pm’s home page as we read it. The client version is from Hex’s GitHub releases. Hex names no attacker, and neither do we.

Spotted an error? [Write to us](https://www.thetechbag.com/blog/standards#corrections); corrections are published at the foot of the piece.

Sources

1. [Hex, Security incident on hex.pm (Peter Ullrich, Jonatan Männchen and Eric Meadows-Jönsson)](https://hex.pm/blog/security-incident-on-hexpm) — 24 November 2026
2. [CVE-2026-129514: Unauthenticated remote code execution through struct values in Erlang term request bodies (CNA: EEF)](https://www.cve.org/CVERecord?id=CVE-2026-129514) — published 24 November 2026
3. [Hex specifications, Registry v2: Signing](https://github.com/hexpm/specifications/blob/main/registry-v2.md) — as published on 28 November 2026
4. [hex.pm, home page: packages available, downloads yesterday](https://hex.pm/) — read 28 November 2026
5. [hexpm/hex, Releases (v2.7.0)](https://github.com/hexpm/hex/releases) — 6 November 2026, read 28 November 2026

**Disclosure.** TechBag is a software reseller: it earns when companies buy through it, including from vendors named here. The analysis is TechBag’s own; no vendor paid for or saw this piece before publication. Facts are labelled reported, TechBag count or our view. [How the Journal works](https://www.thetechbag.com/blog/standards).

**Read this next:** [Valid provenance, malicious code: what three npm worm waves broke](https://www.thetechbag.com/blog/npm-worm-valid-provenance-supply-chain) — Another package registry under attack: how three npm worm waves put signed, malicious releases on npm and PyPI, and the settings that keep the next one out.

Go deeper on TechBag

- [4,837 hijacked GitHub accounts probed 61,764 repos; at least 1,806 ran a secret stealer](https://www.thetechbag.com/blog/github-4837-hijacked-accounts-61764-repos-ci-secrets) — another developer platform used as the way in this month
- [Two hijacked releases of Microsoft’s agent-framework stole Azure and CI tokens](https://www.thetechbag.com/blog/microsoft-agent-framework-pypi-credential-stealer) — what happens when a package registry does serve a malicious release
- [Developer tools guide](https://www.thetechbag.com/browse/devops/developer-tools) — the code hosts, registries and pipelines where a developer’s credentials are the key
