Skip to content
Breach Index · running record

Hex.pm security incident (2026): CVE-2026-129514 exploited on the Elixir and Erlang package registry

Hex.pm is the package registry for Elixir and Erlang, used by Mix, rebar3 and Gleam. This page tracks the November 2026 incident in which an attacker exploited a flaw in the hex.pm web application to run commands on its servers.

Short answer

Was Hex.pm hacked?

Yes, by Hex.pm's own account. Its 24 November 2026 post says "an unauthorized third party exploited a vulnerability in hex.pm that let them run commands on our web servers." Between 18:16 and 18:29 UTC on 23 November the attacker sent 69 malicious requests and six web servers were affected; Hex.pm blocked the traffic and replaced every server with a patched build by 18:31.

Hex.pm found no evidence of changed packages, database changes or lasting access. Database reads are not logged, so it cannot rule out that email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs were read. The registry signing key was readable by the process and had not been rotated when Hex.pm posted; no source says it was taken.

Timeline at a glance

  1. 23 Nov 202669 malicious requests (18:16-18:29 UTC); commands run on six hex.pm web servers. (Hex.pm)Confirmed
  2. 23 Nov 2026Patched build on every server by 18:31 UTC; infrastructure credentials rotated; IMY, CISA and ENISA notified. (Hex.pm)Confirmed
  3. 24 Nov 2026CVE-2026-129514 and GHSA-9pmm-hf4r-27pg published: CVSS 4.0 10.0, CWE-502, marked attacked. (hexpm/hexpm (GitHub))Confirmed

Last updated November 27, 2026. Every entry is dated and linked to its source; claims by attackers are labelled as claims, never stated as fact.

What to check this week if your organisation uses Hex.pm

  • List what you share with Hex.pm: data, accounts, network or API access.
  • Rotate passwords, API keys and tokens shared with Hex.pm, and review the access it has to your systems.
  • Warn finance and staff: expect phishing and payment-change requests that mention the incident.

A supplier was breached: the response, step by step

Work through the checklist

Hex.pm incident timeline, in detail

Confirmed = acknowledged by Hex.pm, a regulator filing or a court. Reported = credible reporting Hex.pm has not fully confirmed. Unverified claim = an attacker or leak-site claim.

Nov 2026ConfirmedPackage registry / unauthenticated remote code execution

CVE-2026-129514: unauthenticated RCE used against the hex.pm web servers

What happened. Per the GitHub advisory and the Erlang Ecosystem Foundation CVE record, the application/vnd.hex+erlang request body parser decoded Erlang terms containing maps with a __struct__ key, and it ran before routing and authentication, so any POST route was reachable without an account. Hex.pm says six web servers were hit because a restart at 18:28 UTC brought up three new servers still on the vulnerable build. Affected: hex.pm from 2016-02-23 to the fix on 2026-11-23 (commit 379b0a2).

Impact. No evidence of package modifications: all 23 releases in the window match audit logs, and 62 package files and 186 registry files match database checksums; documentation archives have no checksum to compare. Reads of account data, private packages and environment secrets cannot be ruled out because they are not logged. Hex.pm rotated every credential the attacker could have read except the registry signing key and a few low-impact secrets, and is building a new signing system.

Sources: Hex.pm incident post · GHSA-9pmm-hf4r-27pg · EEF CVE record · PlayCISO write-up

Where the reports disagree

  • None between primary sources. The advisory says the attacker could read the application environment, including the registry signing key; Hex.pm says it found no evidence of package changes. Both can be true: reading a key is not the same as using it, and no source says the key was used or taken.

The pattern across the record

Pre-authentication parsing is the whole attack surface

The parser ran before routing and authentication, so every POST route was a way in. Deserializing untrusted input with a format that can carry structs or objects turns a parser into a command runner.

A restart can bring vulnerable servers back

Three of the six servers were hit because a restart started them on the old build. During an incident, make sure scaling and restarts use the patched image.

Checksums are what let a registry say "nothing changed"

Hex.pm could clear packages and registry files because it had checksums to compare; documentation archives had none and could not be checked.

What it means for Hex.pm Elixir, Erlang and Gleam teams — and what to do

If your builds fetch packages from Hex, these are the steps Hex.pm asks for, plus basic dependency hygiene.

  1. 1.Change your hex.pm password and reset 2FA

    Reset 2FA at hex.pm/dashboard/security ("Setup New App" under "Authenticator App") and store the new recovery codes.

    Hex.pm notice
  2. 2.Use only repo.hex.pm for now

    Remove third-party mirrors until the new signing system ships, then update with mix local.hex --force (and rebar3 or Gleam).

  3. 3.Review lockfile changes since 23 November

    Check mix.lock changes and make CI fail on checksum mismatches. Hex.pm says it sees no need to rotate API keys; follow your own policy.

    Key rotation planner
  4. 4.Self-hosting hexpm?

    Deploy a build that includes commit 379b0a2, which rejects decoded maps with a __struct__ key.

    Fix commit
Take this with you
Incident timeline · What Hex.pm Elixir, Erlang and Gleam teams should do · Sources

CISO takeaways

Sources

Company statements and regulator filings first, then reputable reporting. Reviewed November 27, 2026.

  1. 1.Security incident on hex.pm — Hex.pm, 24 Nov 2026
  2. 2.GHSA-9pmm-hf4r-27pg — hexpm/hexpm (GitHub), 24 Nov 2026
  3. 3.CVE-2026-129514 — Erlang Ecosystem Foundation CNA, 24 Nov 2026

Frequently asked questions

Was Hex.pm hacked?

Yes. Hex.pm says an unauthorized third party exploited a vulnerability in hex.pm to run commands on six of its web servers on 23 November 2026. It blocked the traffic and deployed a fix within about 20 minutes.

Were Hex packages changed?

Hex.pm found no evidence of it. All 23 releases published during the incident match audit logs and package and registry files match database checksums. Documentation archives could not be checked.

Was my Hex account data stolen?

Not known. Database reads are not logged, so Hex.pm cannot rule out that email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs were read. It asks users to change passwords and reset 2FA.

Do I need to rotate Hex API keys?

Hex.pm says it does not see a need to rotate API keys because of the exposed hashes.

Our coverage of Hex.pm

Same sourced, verification-tagged timeline, company by company — compare how peers have fared.

Or see the full Breach Index and how to read it.

Independent analysis for security-leadership education; not affiliated with or endorsed by Hex.pm. Facts are attributed to the dated sources above, and anything disputed or unconfirmed is labelled as such. See the full Breach Index.