Hex.pm Elixir Registry Exploited via CVE-2026-129514: Reset Your Password and 2FA Now

Cover card: Hex.pm CVE-2026-129514, CVSS 10, servers exploited, reset password and 2FA now.

Status: On November 23, 2026, an unauthorized third party exploited CVE-2026-129514, an unauthenticated remote code execution flaw in the hex.pm web application, and ran commands on six hex.pm production web servers. The CVE record carries a CVSS 4.0 base score of 10.0 from the CNA. Hex, the package registry used by Elixir, Erlang and Gleam projects, says it found no evidence of modified packages, no database changes and no lasting attacker access. It also says it cannot rule out that the attacker read the database, which holds email addresses, password hashes, API key hashes, two-factor authentication (2FA) secrets, sessions and audit logs. Hex replaced the credentials the attacker could have read, except the registry signing key and a few low-impact secrets. Replacing the session and access token keys logged every user out. Hex asks every user to change their password, reset their 2FA and fetch packages only from repo.hex.pm until new Hex client releases with a new signing system ship. The flaw was fixed on hex.pm's own servers on November 23.

CVE-2026-129514 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog.

Executive Summary

This is an incident at a package registry, so the exposure is mostly about accounts and trust rather than a patch you install. Elixir, Erlang and Gleam builds pull dependencies from hex.pm, and Hex's own guidance names Hex clients, rebar3 and Gleam. A flaw that gave an unauthenticated attacker command execution on the registry's web servers touches every team that builds on those packages, and every supplier that does (Rescana reading).

Hex reports that it found no unexpected package files, no unexplained database changes and, in its cloud audit logs, no new keys or accounts from the attacker's addresses. Its own list of what it cannot verify is short but important: database reads, environment variable reads and shell commands are not logged, so it cannot say whether account data was read. The CVE record says the application's environment holds the database URL, the storage credentials and the registry signing key. Hex rotated everything it considered readable except the signing key, and says it is building a new signing system that supports key rotation.

Hex does not ask users to rotate API keys. It says API keys are 128-bit random values stored as HMAC-SHA256 hashes, and that it sees no need to rotate them because of the exposed hashes. Passwords are stored with bcrypt, which slows guessing but does not stop it for a weak password, so Hex asks everyone to change theirs.

What Hex asks every user to do first:

  • Change your password at hex.pm.
  • Reset 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. This works even when an organization requires 2FA.
  • Use only repo.hex.pm, not third-party mirrors, until the new Hex client releases are out, then update your Hex client.
  • Treat email that claims to come from Hex with care, because email addresses may have been exposed. Check that links lead to hex.pm and forward suspicious messages to security@hex.pm. If you notice anything unusual in your account, contact support@hex.pm.

What to add on top (Rescana guidance): confirm every owner of a Hex account used by your team or your CI has done both resets, check that no build points at a mirror, and review your lockfiles and any package publish history for changes you did not make.

Technical Information

This section relies on Hex's incident post of November 24, 2026, the GitHub security advisory GHSA-9pmm-hf4r-27pg, the CVE.org, NVD and EEF CNA records, CISA's KEV catalog and the FIRST EPSS API. Hex's post and the advisory describe the flaw in technical detail. We do not repeat the exploit mechanics, we found no public proof-of-concept referenced in them, and we opened none.

Item Value
CVE CVE-2026-129514 (GitHub advisory GHSA-9pmm-hf4r-27pg)
Weakness CWE-502, deserialization of untrusted data
Score CVSS 4.0 base 10.0 Critical from the CNA (the Erlang Ecosystem Foundation, EEF): AV:N/AC:L/AT:N/PR:N/UI:N, high impact on confidentiality, integrity and availability, exploit maturity "attacked"
NVD Status Awaiting Analysis in the NVD API and "Awaiting Enrichment" on the detail page; no NVD assessment yet, and the API lists the CNA's CVSS 4.0 10.0 as a secondary score
Affected hex.pm from 2016-02-23 before 2026-11-23; the open source hexpm/hexpm code from commit ab1bbce before commit 379b0a2
Fixed Patched build running on all hex.pm servers from 1:31 p.m. EST on November 23, 2026; code fix in hexpm commit 379b0a2
EPSS 1.65% on November 25, 2026

The flaw. A request parser in the hex.pm web application decoded Erlang term request bodies from unauthenticated requests without restricting what they could contain. A crafted body led to operating system command execution as the user of the application process. The CVE record notes that this user can read the application's environment. Hex says the safety check in the decoder was removed on February 23, 2016, which matches the start of the affected range. The fix makes the decoder reject the offending terms and return a 400 error, and because the check sits in the one decoder used for this format, it covers every route.

What Hex found.

  • Exploitation: 69 malicious requests between 1:16 p.m. EST and 1:29 p.m. EST on November 23, 2026 affected six web servers. Hex says six servers were hit because a restart brought up three new servers still on the vulnerable build.
  • Packages: all 23 releases published during the incident match a publish or stage entry in Hex's audit log, no older release changed, and all 62 package files and 186 registry files written since 1:00 p.m. EST match the checksums in the database. Documentation archives have no stored checksum to compare.
  • Database writes: Hex restored a database copy from before the first attacker request and compared every row with production. It found no unexpected change. It notes that a row changed and then changed back would not show up.
  • Lasting access: no shells in the process lists, and cloud audit logs show no new keys, accounts or API calls from the attacker's addresses.
  • Private packages and documentation: reads of private packages in the period came from Hex's own servers and match releases the same organizations published, but a read made from a compromised server would look the same, so Hex cannot fully rule one out. Reads of private documentation are not logged, and direct reads from cloud storage are not logged. Hex says it will contact affected organizations directly.
  • Earlier activity: in request logs reviewed from November 19, Hex found the attacker addresses repeatedly downloading hex.pm's own dependencies, which Hex says suggests the attacker built a local copy to test against.

Credentials and the signing key. Hex replaced the storage, CDN, email and database credentials and the keys that sign sessions and access tokens, which logged everyone out of hex.pm and Hex clients. By 5:42 a.m. EST on November 24 it had rotated every credential the attacker could have read, except the registry signing key and a few low-impact secrets. Hex has not said the signing key was taken. It says a new registry signing system that supports key rotation is being built, with new Hex client releases in the coming days, and that until then users should not trust third-party mirrors. When we checked at 3:15 a.m. EST on November 26, the latest Hex release in the project's GitHub releases list was v2.7.0 from November 6, so the release with the new signing system had not appeared yet (Rescana reading).

Related flaws in the Elixir ecosystem. Hex says it found the same class of problem in Ash and that Ash 3.38.0 fixed it on November 24 (CVE-2026-124283). The CVE.org record lists ash from 3.31.3 before 3.38.0 as affected and rates it CVSS 4.0 8.9 High. Hex also names a db_connection issue, CVE-2026-133555, whose CVE.org record lists db_connection from 1.1.0 before 2.10.3 and says it is not exploitable on its own: the root cause is a component that decodes untrusted terms without restricting what the result contains, and any such component stays at risk independently.

Affected Product Versions

  • The hex.pm service: affected from 2016-02-23 until the patched build of November 23, 2026. Nothing to install: the fix is already running.
  • Self-hosted hexpm: the open source hexpm/hexpm code is affected from commit ab1bbce before commit 379b0a2, so a private registry built from that code needs to include the fix.
  • Hex accounts: Hex asks all users to reset passwords and 2FA, because account data may have been read.
  • Hex client: Hex names no vulnerable client version. It announces new client releases with a new signing system, and tells users to update with mix local.hex --force and to update rebar3 or Gleam if they use them, once that release is out.
  • Ash and db_connection: affected ranges are ash 3.31.3 to before 3.38.0 and db_connection 1.1.0 to before 2.10.3, per the CVE.org records.

How to Find Your Exposure

  • Inventory your Hex accounts. List every account used for publishing packages, fetching private packages or running CI, and confirm each owner has changed the password and reset 2FA (Rescana guidance).
  • Find any mirror or proxy. Check build files, container images, CI settings and developer machines for any dependency source other than repo.hex.pm (Rescana guidance).
  • Review lockfiles. Compare your Elixir and Erlang lockfiles with a known good commit from before November 23 and investigate any version or checksum change nobody made. Hex found no modified packages, so this is a check, not a sign of compromise (Rescana guidance).
  • Review publish history. If you publish or own packages, review the releases listed for them since November 23 and confirm each one was yours. Hex says the 23 releases published during the incident matched its audit log (Rescana guidance).
  • Look for phishing. Search mail since November 23 for messages that claim to come from Hex and carry links to other domains (Rescana guidance).
  • Check your own code. Find places where your services decode Erlang terms from untrusted input (Rescana guidance).

Workaround and Mitigation

Hex asks users for four actions, plus care with email that claims to come from Hex: change the password, reset 2FA, use only repo.hex.pm, and update the Hex client when the new release ships. The vulnerability itself is already fixed on hex.pm's servers.

Rescana guidance, beyond what Hex asks:

  • Hold the line on mirrors. Keep builds pointed at repo.hex.pm until Hex says otherwise, including internal caches or proxies, unless they fetch directly from repo.hex.pm (Rescana guidance).
  • Stage the client update. When Hex ships the release with the new signing system, test it in one build pipeline first, then roll it out and update rebar3 or Gleam where used.
  • Review account API keys. Hex does not ask for rotation, so this is a precaution: list the API keys on each account and revoke any you do not recognize or no longer use.
  • Keep 2FA strong. Store the new recovery codes in your team's secret manager, not in chat or tickets.
  • Update Ash and db_connection if your applications use them, to ash 3.38.0 or later and db_connection 2.10.3 or later.
  • Update self-hosted hexpm to a build that includes commit 379b0a2.
  • Treat untrusted Erlang terms as dangerous. Do not decode them from unauthenticated sources.

Indicators of Compromise

Hex, the GitHub advisory and the CVE records publish no indicators of compromise, and Hex does not publish the attacker's addresses. We list none. Hex found no unexpected package files, so there are no known bad package versions to hunt for. Use the account, mirror, lockfile and publish history checks above (Rescana guidance).

Timeline (EST)

  • November 19 to 23, 2026: in request logs reviewed for this period, Hex finds repeated downloads of hex.pm's own dependencies by the attacker addresses.
  • November 23, 2026, 1:14 p.m. EST: the attacker's first request of any kind to hex.pm, per Hex.
  • 1:16 p.m. EST to 1:29 p.m. EST: 69 exploit requests reach six web servers.
  • 1:27 p.m. EST: Hex adds a firewall rule, which takes full effect between 1:30 p.m. EST and 1:33 p.m. EST.
  • 1:30 p.m. EST to 1:31 p.m. EST: all hex.pm servers are replaced with a patched build.
  • 2:07 p.m. EST: Hex receives a security report describing the same vulnerability.
  • 3:21 p.m. EST: most infrastructure credentials are rotated. The database password follows on November 24.
  • 5:58 p.m. EST: Hex reports a personal data breach to IMY, the Swedish data protection authority.
  • 6:05 p.m. EST: Hex reports the incident to CISA, which confirms receipt at 6:43 p.m. EST.
  • 6:26 p.m. EST: Hex submits an early warning to ENISA, the EU Agency for Cybersecurity.
  • November 24, 2026, by 5:42 a.m. EST: Hex has rotated every credential the attacker could have read, except the registry signing key and a few low-impact secrets.
  • 8:48 a.m. EST: Hex publishes CVE-2026-129514, and the CVE.org record and the GitHub advisory go live.
  • 9:18 a.m. EST: NVD publishes the record. It is last modified at 2:12 p.m. EST and still awaits analysis.
  • November 25, 2026, 2:48 p.m. EST: CISA releases KEV catalogVersion 2026.11.25 (1,805 entries) with CVE-2026-129514 not listed.
  • November 26, 2026, 3:14 a.m. EST to 3:21 a.m. EST: our verification of the Hex post, the advisory, CVE.org, NVD, CISA KEV and EPSS.

Third-Party Risk (TPRM) Angle

Any supplier that writes software in Elixir, Erlang or Gleam, or ships a product built on them, pulls dependencies from hex.pm and may hold Hex accounts that publish packages or fetch private ones. Hex found no tampering, but it cannot rule out reads of account data, and the registry signing key stays in use until the new signing system arrives (Rescana reading). Suppliers that keep an internal mirror of hex.pm are in the group Hex tells to stop trusting mirrors for now.

Questions for suppliers that build on Elixir, Erlang or Gleam (Rescana guidance):

  • Do you build or ship software that depends on Hex packages, and do any of your builds fetch from anything other than repo.hex.pm?
  • Have every maintainer and CI account changed the password and reset 2FA since November 24, and who confirmed it?
  • Did you review lockfiles and package publish history for changes since November 23, and what did you find?
  • Do you publish packages or run a private hexpm registry, and is the Hex client update planned for when the new signing release ships?

Need help finding which suppliers in your portfolio build on Elixir or Erlang and tracking their answers? Talk to an expert

Sources

Talk to an expert

Talk to Rescana about this advisory — or about how we help TPRM teams keep reviews moving.