Hex Package Manager Warns of Potential Data Breach
Hex says an attacker used CVE-2026-129514 to run commands on six hex.pm servers on November 23, so users should change passwords and reset two-factor auth.
By Dillip Chowdary • Nov 28, 2026 • Source: SecurityWeek

At a glance
- Service
- hex.pm, Elixir and Erlang package manager
- Incident date
- November 23, 2026, 18:16–18:29 UTC
- Scope
- 69 malicious requests, six web servers
- Vulnerability
- CVE-2026-129514, CVSS 10, RCE
- Related CVEs
- Ash CVE-2026-124283, db_connection, flop
- User action
- Change password, reset 2FA
In this post
Hex, the package manager for the Elixir and Erlang ecosystems, disclosed on November 24, 2026 that an attacker had exploited a vulnerability in hex.pm the previous day to run commands on its web servers, as detailed in SecurityWeek's report on the Hex breach. Hex blocked the attack and fixed the flaw within about 20 minutes. It found no evidence of tampered packages, but it cannot rule out that the attacker read data from its database.
This piece walks through the minute-by-minute timeline, the data that may have been exposed, the credentials Hex rotated, the deserialization bug behind the attack, and the steps account holders should take now. It is aimed at Elixir, Erlang and Gleam developers who publish or consume packages from hex.pm.
01Thirteen minutes of malicious requests
The attack took place on November 23 between 18:16 and 18:29 UTC, when the attacker sent 69 malicious requests that affected six web servers. Hex's own incident post says a firewall rule was added at 18:27 and took full effect between 18:30 and 18:33. All hex.pm servers were replaced with a patched build at 18:30 and 18:31.
Six servers were hit because a restart at 18:28 brought up three new servers still running the vulnerable build. At 19:07, Hex received an email security report describing the same vulnerability. Later that night it reported a personal data breach to IMY, the Swedish data protection authority, notified CISA, and submitted an early warning to ENISA.
02Data that may have been read
"We found no evidence of unauthorized package modifications, database changes, or that the attacker maintained access to our systems," Hex said. A restored database copy from 18:13:59 was compared row by row with the live database, and all 23 releases published during the incident match audit log entries.
Hex cannot exclude access to database contents, including email addresses, password hashes, API key hashes, sessions, two-factor authentication secrets and audit logs. Database reads and private documentation reads are not logged. All observed reads of private packages came from Hex servers, but any read from a compromised server would appear legitimate.
Hex said API keys are 128-bit random values stored as HMAC-SHA256 hashes, so it does not plan to rotate API keys over the exposed hashes. It also noted that the attacker's addresses had repeatedly downloaded hex.pm's dependencies since November 19, suggesting a local copy was built for testing.
03Rotated credentials and forced logouts
"The attacker's commands could read the credentials our servers use, so we replaced them: the storage, CDN, email and database credentials, and the keys that sign sessions and access tokens. This logged everyone out of hex.pm and Hex clients," Hex said. Most infrastructure credentials were rotated by 20:21 UTC on November 23, and the rest, including the database password, by 10:42 on November 24.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
The registry signing key was the exception and was not rotated. Hex has been building a new registry signing system with key rotation support. Until updated Hex clients roll out, users should avoid third-party mirrors and fetch packages only from repo.hex.pm.
04Erlang term deserialization, CVE-2026-129514
The attacker exploited an unauthenticated deserialization of untrusted data bug, tracked as CVE-2026-129514 with a CVSS score of 10. A crafted Erlang external term format request body let the attacker execute operating system commands and gain remote code execution. Hex says a custom parser for the application/vnd.hex+erlang content type ran before routing and authentication, so any unauthenticated POST reached it.
The decoder blocked most harmful terms but let struct values through, and a chain through error reporting, Ecto's Inspect implementation and a DBConnection stream ended in command execution. Hex's git history shows the safety check had been removed on February 23, 2016. The fix, hexpm commit 379b0a2, rejects any term containing a map with a struct key and returns a 400 error.
05Ash, db_connection and flop patches
Hex found that the Ash Framework was affected by the same class of vulnerability. Ash patched the flaw, tracked as CVE-2026-124283, on November 24 in Ash 3.38.0, warning that it could lead to code execution or SQL injection. The issue sat in keyset pagination, which accepted crafted structs in client cursors.
Related defects were also patched in two other Elixir libraries, db_connection (CVE-2026-133555) and flop (CVE-2026-130411). Hex's planned hardening includes changes to plug_crypto, plug and ecto so that struct values in request bodies are refused by default.
Hex recommends that every account holder take these steps:
- Change your password on hex.pm.
- Reset two-factor authentication at hex.pm/dashboard/security by choosing Setup New App and saving the new recovery codes.
- Update the Hex client when the new signing-system release ships, using mix local.hex --force, and update rebar3 or Gleam if used.
- Watch for phishing and check that links in emails claiming to be from Hex lead to hex.pm.
"Because email addresses may have been exposed, be careful with emails that claim to come from Hex. Please double-check that the links they contain lead to hex.pm," the package manager said.
Note: Hex said its incident post will be updated as the investigation continues, and the registry signing key will only change once the new client releases are available.
Frequently asked questions
Was hex.pm hacked?
Yes. On November 23, 2026, an attacker exploited CVE-2026-129514 to run commands on six hex.pm web servers. Hex blocked the attack and deployed a fix within about 20 minutes.
Were Hex packages modified in the breach?
Hex found no evidence of unauthorized package modifications or database changes. All 23 releases published during the incident match audit log entries.
What data may have been exposed in the hex.pm incident?
Hex cannot rule out access to email addresses, password hashes, API key hashes, sessions, two-factor authentication secrets and audit logs, because database reads are not logged.
What should Hex users do after the breach?
Change your hex.pm password, reset two-factor authentication, fetch packages only from repo.hex.pm, and update the Hex client when the new signing-system release ships.
Is the Ash Framework affected by the Hex vulnerability?
Ash had the same class of flaw, tracked as CVE-2026-124283, and patched it on November 24 in Ash 3.38.0. Related issues were also fixed in db_connection and flop.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Electric boat maker Zin Boats raises $5M and launches propulsion business beyond the water
Read →
Most Unicorns Are Worth More Than Their Last Funding-Round Valuations, Crunchbase…
Read →
Run local models in your .NET apps with Llama on Windows
Read →
See what 6 builders are making with Gemini 4 Hydrogen
Read →
Today's Tech Pulse briefing
Full briefing →
Advertisement