Summary
The application/vnd.hex+erlang request body parser in hexpm, the hex.pm package registry server, deserializes untrusted data (CWE-502). HexpmWeb.ErlangFormat.decode/1 decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps containing a __struct__ key. The decoded term becomes the request params. The parser runs before routing and authentication, so a POST to any route reaches it. When error reporting inspects the params, the attacker chooses which Inspect and Enumerable protocol implementations run. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on data from the request.
Per the CVSS 4.0 vector (score 10, critical), the attack is network-based and low-complexity, with no prerequisites, no authentication and no user interaction. An attacker can execute OS commands and fully compromise the confidentiality, integrity and availability of the vulnerable system and connected systems. The vulnerability was actively exploited against the hex.pm service on 2026-11-23 (E:A). It is not listed in CISA KEV. EPSS is about 3.2% (88th percentile).
Affected are the hex.pm service from 2016-02-23 until 2026-11-23, and hexpm/hexpm code from commit ab1bbcef up to commit 379b0a29, which contains the fix.
Who is affected
This affects organizations that self-host the hexpm application (e.g. a private Hex registry) built from vulnerable commits, as well as hex.pm users in light of the reported security incident.
What to do
- Urgently update self-hosted hexpm instances to code that includes commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later.
- The hex.pm service was fixed on 2026-11-23. Read the incident post (hex.pm/blog/security-incident-on-hexpm) and advisory GHSA-9pmm-hf4r-27pg, and follow the vendor's recommendations.
- Check exposure: determine whether your instance runs code between commits ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and 379b0a29bcc95164249f38ad7d772a37a8ff9533 and whether it is network-reachable.
- Because the flaw was actively exploited, review logs for POST requests with Content-Type application/vnd.hex+erlang and look for signs of compromise, such as unexpected processes or commands. Rotate credentials and secrets accessible to the application.
- If you cannot update immediately, check the vendor's official advisory for a workaround. None is listed in the record.
Affected products and versions
CVSS vector, explained
CVSS: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
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None (no login)
- User interaction
- Not required
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-502 Deserialization of Untrusted Data
References
- github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg vendor advisory
- cna.erlef.org/cves/CVE-2026-129514.html
- osv.dev/vulnerability/EEF-CVE-2026-129514
- hex.pm/blog/security-incident-on-hexpm
- github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59
- github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533 patch
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.