CVE-2026-129514: Unauthenticated RCE in the hexpm Erlang request-body parser
CVE-2026-129514 is an unauthenticated remote code execution vulnerability in hexpm, the server application powering the Hex package registry. HexpmWeb.ErlangFormat.decode/1 decodes application/vnd.hex+erlang request bodies using Plug.Crypto.non_executable_binary_to_term/2 with the safe option, which rejects executable terms but permits maps containing a struct key. HexpmWeb.PlugParser.parse/5 accepts these maps as request parameters before routing or authentication. Attacker-controlled struct markers select Elixir Inspect and Enumerable implementations during error reporting, enabling a chain through Ecto.Query.DynamicExpr and DBConnection.Stream to invoke apply/3 with attacker-controlled function selection and arguments. Commands execute with the privileges of the BEAM process user. The vulnerable implementation was present from February 23, 2016, until the November 23, 2026 patch. Active exploitation on November 23 compromised six production web servers. The vulnerability affects the server application, not the locally installed Hex client.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of the registry application within the permissions of its service account. The compromised process can access database connection information, storage credentials, and the registry signing key, potentially enabling sensitive database reads, access to private packages and documentation, and downstream supply-chain attacks. Observed exploitation achieved operating system command execution on six servers. Investigators found no evidence of unauthorized package modifications, database changes, or persistent access, but incomplete read and execution logging prevented them from excluding data theft. Potentially exposed account information included email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions, and audit logs. Theft or misuse of the registry signing key was not established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict network access to vulnerable registry deployments and block untrusted application/vnd.hex+erlang request bodies at a reverse proxy or equivalent ingress control. Route-specific authentication is insufficient because parsing occurs before routing and authentication. Review request logs, package releases, ownership changes, and account activity for exploitation or unauthorized changes. During incident recovery, use only the official package repository, avoid third-party mirrors, and install updated registry clients supporting the replacement signing system when available.
Remediation
Patch, then assume compromise.
For self-hosted or forked hexpm deployments, apply fixing commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 or an equivalent patch, and replace every running vulnerable instance. The affected source range begins at ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and ends before the fixing commit. The patch rejects decoded terms containing any map with a struct key and returns HTTP 400. Safe-mode Erlang decoding alone is insufficient. Upgrade db_connection to 2.10.3 or later as additional hardening against the related gadget vulnerability; this does not replace fixing unrestricted deserialization. For compromised deployments, rotate potentially exposed infrastructure credentials and session/access-token signing keys and investigate registry integrity. Affected Hex account holders were advised to change passwords, reset enabled two-factor authentication with fresh secrets and recovery codes, and reauthenticate clients.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
References
Frequently asked questions
- Is CVE-2026-129514 exploited in the wild?
- Yes. As of Nov 25, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-129514?
- As of Nov 25, 2026, Mallory has found no public exploit for CVE-2026-129514.
- Is there a patch for CVE-2026-129514?
- For self-hosted or forked hexpm deployments, apply fixing commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 or an equivalent patch, and replace every running vulnerable instance. The affected source range begins at ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and ends before the fixing commit.
- How severe is CVE-2026-129514?
- CVE-2026-129514 has a CVSS v4 score of 10.0 (Critical) and an EPSS score of 1.7% (77th percentile) as of Nov 25, 2026.
Recent activity
37 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.