Actively exploited CVSS 10.0 Security news

Attacker exploited a Hex.pm flaw to run commands on six servers of the Elixir and Erlang package registry

Hex.pm, the registry Elixir, Erlang and Gleam developers pull their dependencies from, was attacked on 23 November 2026. An attacker exploited CVE-2026-129514 (CVSS 4.0: 10) in the request body parser and ran commands on six web servers. The Hex.pm team stopped the attack and shipped a fix within 20 minutes. It found no tampered packages, but cannot rule out that the attacker read the database holding email addresses, password hashes and 2FA secrets. If you have a hex.pm account, change your password and set up 2FA again.

Kyberkit editorial team · · event date · reading time 3 minutes · For admins and analysts

Actively exploited: Hex.pm, CVE-2026-129514, CVSS 10.0

Key points

  • Affected: the hex.pm service from 23 Feb 2016 to 23 Nov 2026 and hexpm/hexpm code before commit 379b0a2. Hex.pm users should change their password and 2FA.
  • The flaw: deserialization of untrusted data (CWE-502) in the application/vnd.hex+erlang parser. It runs before authentication, so a single POST request is enough.
  • Fix: deployed on 23 Nov at 18:31 UTC. The team rotated infrastructure credentials and session keys, but not yet the registry signing key.
  • Exploited: yes, 69 requests from two addresses between 18:16 and 18:29 UTC. No tampered packages found; database reads cannot be ruled out.

Vulnerabilities: CVE-2026-129514

What happened

On Monday 23 November 2026 an unknown attacker exploited a flaw in the code of Hex.pm, the main package source for Elixir, Erlang and Gleam. According to the Hex.pm team's report of 24 November, the attacker sent 69 malicious requests from two addresses between 18:16 and 18:29 UTC and ran operating system commands on six web servers. Three of those joined mid-attack, when a restart brought up new servers still running the vulnerable build.

The team blocked the traffic and had a fix on every server by 18:31 UTC – under 20 minutes after the first request. At 19:07 an independent report of the same flaw arrived by email. The team reported the personal data breach to IMY, Sweden's data protection authority, and the incident to CISA and ENISA. The flaw was assigned CVE-2026-129514 on 24 November, scored CVSS 4.0: 10.0 and flagged as "attacked".

Technical details

  • Component: the request body parser for the application/vnd.hex+erlang format (HexpmWeb.ErlangFormat.decode/1).
  • Bug class: deserialization of untrusted data (CWE-502). The decoder rejected dangerous term types but let through maps with a __struct__ key, so a request body could impersonate any struct the application had loaded.
  • Preconditions: none – no login. The parser runs before routing and authentication, so a POST to any path reaches it.
  • How the attack works: per the team, a chain of structs led through the Plug, Ecto and DBConnection libraries to OS command execution as the BEAM process user. The safety check had been removed by a change on 23 February 2016.
  • Impact: command execution exposes the application's environment – the database URL, storage credentials and the registry signing key.
How the Hex.pm attack worked1. Attacker sends an unauthenticated POST with an Erlang term body; 2. The decoder accepts a map with a __struct__ key as a fake struct; 3. Error handling inspects the struct through Ecto and DBConnection; 4. A command runs as the service user and the attacker reads app secrets1Attacker sends an unauthenticatedPOST with an Erlang term body2The decoder accepts a map witha __struct__ key as a fake struct3Error handling inspects the structthrough Ecto and DBConnection4A command runs as the service userand the attacker reads app secrets
Based on the Hex.pm report and advisory GHSA-9pmm-hf4r-27pg

Who is affected

columns: Product | Versions | Status
row: hex.pm service | 23 Feb 2016 – 23 Nov 2026 | fixed 23 Nov 2026
row: hexpm/hexpm (self-hosted) | from commit ab1bbce before 379b0a2 | vulnerable
row: hexpm/hexpm | commit 379b0a2 and later | fixed

Anyone with a hex.pm account (including GitHub sign-ins) should follow the steps below. If you have no account and only fetch public packages, there is nothing to reset. The team also cannot rule out reads of private packages and private documentation.

Fixes for related libraries were published alongside the incident: Ash 3.38.0 (CVE-2026-124283, keyset pagination cursors accepted crafted structs) and db_connection (CVE-2026-133555). Update them if you use them.

How to tell if you were compromised

The team has not published the attacker's addresses. According to its report, the 23 releases published during the attack match the audit log, and 62 package files and 186 registry files match database checksums, so it found no tampered packages. It also found no shells, new accounts or new cloud keys. Database reads, shell commands and storage reads were not logged, however.

Your own checks:

  1. Review the release list of your packages on hex.pm and confirm that any releases from 23 November were published by your team.
  2. Watch for phishing: ignore "Hex" emails linking anywhere other than hex.pm, and check suspicious links with our Link checker.
  3. If you run your own hexpm instance, search web server logs for POST requests with Content-Type: application/vnd.hex+erlang from unknown clients.

What to do

  1. Change your password on hex.pm.
  2. Set up 2FA again: at hex.pm/dashboard/security, under Authenticator App, choose "Setup New App", verify a code and store the new recovery codes.
  3. Re-authenticate your client – everyone was logged out (mix hex.user auth, rebar3 hex user auth).
  4. Fetch only from repo.hex.pm until the new client ships, not from mirrors. Once it is out, run mix local.hex --force and update rebar3 and Gleam.
  5. Self-hosted hexpm instances should move to commit 379b0a2 or later.

Timeline

Timeline of the Hex.pm attack23 Feb 2016: A code change removes the check and introduces the flaw; 23 Nov 2026 18:16: First malicious request, 69 requests until 18:29; 23 Nov 2026 18:31: Patched build running on every server; 24 Nov 2026: Credentials rotated and CVE-2026-129514 published23 Feb 2016A code change removes thecheck and introduces the flaw23 Nov 202618:16First malicious request, 69requests until 18:2923 Nov 202618:31Patched build running onevery server24 Nov 2026Credentials rotated andCVE-2026-129514 published
Based on the Hex.pm report (times in UTC)

FAQ

I only fetch public packages with mix or rebar3. Do I need to do anything?

No account reset is needed. Until the new Hex client ships, fetch only from the official repo.hex.pm rather than mirrors, and update the client once it is out (`mix local.hex --force`, plus rebar3 or Gleam if you use them).

Do I need to rotate my API keys?

Not according to the Hex.pm team. Keys are 128-bit random values stored as HMAC-SHA256, so they cannot be brute-forced from the hash. Passwords are hashed with bcrypt, and those you should change.

Why does the registry signing key matter?

The Hex client uses it to check that the package index really comes from hex.pm. An attacker holding the key could forge an index, for example on a mirror. The key has not been rotated yet, hence the advice to fetch only from repo.hex.pm until the client with the new signing system is released.

Sources

  1. Hex.pm – Security incident on hex.pm (24 Nov 2026)
  2. GitHub – advisory GHSA-9pmm-hf4r-27pg for hexpm/hexpm (24 Nov 2026)
  3. EEF CNA – CVE-2026-129514
  4. NVD – CVE-2026-129514
  5. The Hacker News – Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw (25 Nov 2026)

Spotted a mistake? Let us know and we will correct it openly.