Hex.pm says that on 23 November 2026 (UTC) an unauthorized third party exploited a vulnerability in the platform to run commands on its web servers, and that it blocked the traffic and deployed a fix within 20 minutes; the flaw is tracked as CVE-2026-129514 [1]. According to iThome, the attacker sent 69 malicious requests affecting six servers, and the investigation found no package tampering or database changes, but because database reads were not logged the theft of user email addresses, password hashes, API key hashes and 2FA secrets cannot be ruled out [2]. What to do now: Hex.pm asks users to change their password at hex.pm, reset 2FA on the security page, and until the new client is released fetch packages only from repo.hex.pm and not from mirrors [1].
Erlang and Elixir package registry Hex.pm hit by remote command execution; developers must change passwords and reset 2FA
2 min readLast updated
30-second summary
- Disclosed
- Nov 24, 2026
- Occurred
- Nov 23, 2026
- Published
- Dec 2, 2026
- Last updated
- Nov 25, 2026
- CVSS basis
- Our assessment
- 3.1%, higher than 88% of CVEs
- Technology
- Attack vector
- Impact
- Data type
- Vulnerability status
- Actor type
- Motivation
- MITRE ATT&CK
On this page
Timeline
Technical details
What happened
Hex.pm says that on 23 November 2026 an unauthorized third party exploited a vulnerability in hex.pm to run commands on its web servers; it blocked the traffic and deployed a fix within 20 minutes, and shortly afterwards received a security report describing the same vulnerability [1]. Its timeline shows the attacker sent 69 malicious requests between 18:16 and 18:29 UTC, affecting six web servers [1].
The vulnerability
The flaw is tracked as CVE-2026-129514 [1]. According to iThome, it has a 4.0 score of 10 and had existed in Hex.pm's request parsing since February 2016: the server deserialized external request data before authenticating the user without sufficiently checking data types, letting an attacker pass forged Elixir structs that triggered existing library code to run operating system commands [2]. The parser now rejects external data containing struct markers [2].
Scope
Hex.pm says it found no evidence of unauthorized package modifications, database changes, or that the attacker maintained access [1]. According to iThome, because database reads were not logged, the theft of user email addresses, password hashes, API key hashes and 2FA secrets cannot be ruled out, and private packages and documentation may also have been accessed without authorization [2].
Response
Hex.pm reported a personal data breach to IMY, the Swedish data protection authority, and reported the incident to CISA in the US and ENISA in the EU [1]. By 24 November it had rotated every credential the attacker could have read except the registry signing key and a few low-impact secrets . According to iThome, all users were logged out and a new signing system that supports key rotation is being built . During the investigation the team also found vulnerabilities in the Elixir libraries Ash, Flop and db_connection, all of which now have patched releases .
Remediation
Vendor guidance
- 1Change password and reset 2FA Mitigate[1]
Change your password at hex.pm and use "Setup New App" on the security page to get a new 2FA secret and recovery codes.
- 2Fetch packages only from repo.hex.pm Mitigate[1]
Until the Hex client with the new signing system is released, do not trust third-party mirrors.
References
Official / primary1
- [1]Hex2026-11-24Accessed 2026-11-25Snapshot 2026-11-25 sha256 ed32a13d37f2
“On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm that let them run commands on our web servers. We blocked the traffic and deployed a fix within 20 minutes.”
Media1
- [2]
Found this useful?
Pass it to whoever runs these systems so they can patch in time.
This site aggregates public information and is not security consulting advice. Test remediation steps before applying.