CVEs / CVE-2026-129514
CVE-2026-129514: hexpm hexpm vulnerability
- critical 10 CVSS 4.0 (from the CNA)
- EPSS 3.16% chance of exploitation in the next 30 days, higher than 88% of CVEs (29 Nov 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2026-129514
Description
Deserialization of Untrusted Data vulnerability in the application/vnd.hex+erlang request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23. HexpmWeb.ErlangFormat.decode/1 in lib/hexpm_web/erlang_format.ex decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps that have a __struct__ key. HexpmWeb.PlugParser.parse/5 returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the __struct__ key, so the client selects which Inspect and Enumerable implementations run when error reporting inspects the params. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a {module, function, args} tuple taken from the request body. This issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| hexpm hexpm | from 2016-02-23, before 2026-11-23 | 2026-11-23 |
| hexpm hexpm | from ab1bbcef7cc8395d1056d3b1aa6a174353492d59, before 379b0a29bcc95164249f38ad7d772a37a8ff9533 | 379b0a29bcc95164249f38ad7d772a37a8ff9533 |
Exploitation
Not in the CISA Known Exploited Vulnerabilities catalog as of 27 Nov 2026.
Severity
| CVSS 4.0 | 10 criticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:A/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XScored by the CNA (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) |
|---|---|
| Weakness | CWE-502 |
On the Stackurity blog
References
- CVE-2026-129514 on NVD
- CVE-2026-129514 on OSV
- https://cna.erlef.org/cves/CVE-2026-129514.html
- https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533
- https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59
- https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg
- https://hex.pm/blog/security-incident-on-hexpm
- https://osv.dev/vulnerability/EEF-CVE-2026-129514
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.