# Hex.pm patches flaw after attacker hits six registry servers

Maintainers found no evidence of unauthorized package or database changes or lasting access, but could not rule out data being read. Password-based users should change their passwords and reset two-factor authentication if enabled; GitHub users should log back in and reset two-factor authentication if enabled. A client update is expected in the coming days.

Published 25 November 2026 · AveNews · Software

https://www.avenews.am/en/posts/hex-pm-package-registry-server-breach · [Հայերեն](https://www.avenews.am/hy/posts/hex-pm-package-registry-server-breach)

An attacker ran operating-system commands on six production servers at Hex.pm, a package registry used by Elixir and Erlang developers, on 23 November 2026. The attacker sent 69 malicious requests between 18:16 and 18:29 UTC, and all servers were running a patched build by 18:31 UTC.[^2][^1]

The flaw had been present since a safety check was removed on 23 February 2016. The attacker’s identity is unknown, and earlier exploitation has not been established,[The Hacker News](https://thehackernews.com/2026/11/hackers-exploited-cvss-100-hexpm-rce.html)said.[^1]

The maintainers found no evidence of unauthorized changes to packages or the database, or of lasting attacker access. But they could not rule out access to account data, private packages or the registry signing key, which helps verify registry information.[^2][^1]

## What the checks found

The maintainers compared every database table with a copy from before the attack and checked the 23 releases published during the incident against audit entries. They also compared package and registry files with database records. The checks found no unexpected changes, though the database comparison could miss a change that was later reversed or overwritten, and documentation archives had no stored checksum for comparison.[^2]

Before replacing the affected servers, the team checked their running processes and found no shells left open. Cloud audit logs showed no new keys or accounts and no application programming interface (API) calls from the attacker’s addresses.[^2]

The investigation has limits: database reads, shell commands, environment-variable reads and direct cloud-storage reads were not logged. Account information potentially exposed includes email addresses, password hashes and two-factor authentication secrets. A private-package read from a compromised server would have looked like a legitimate server read, the maintainers said.[^2]

## What account holders should do

Replacing keys that sign sessions and access tokens, which the attacker could have read, logged everyone out of Hex.pm and its clients. The maintainers advise password-based account holders to change their passwords, set up a new authenticator entry for two-factor authentication, save the new recovery codes and log back in to their clients.[^2][^1]

Maintainer Peter Ullrich said people who signed up with GitHub should log back in to their clients and reset two-factor authentication if they enabled it. Developers who only download public packages and have no Hex.pm account have nothing to reset.[^1]

The team says API keys do not need to be replaced: they are random 128-bit values stored as HMAC-SHA256 hashes, which the maintainers consider beyond practical guessing. Passwords are hashed with bcrypt, but weak ones can still be guessed. Because email addresses may have been exposed, the team advises checking that links in messages claiming to be from Hex lead to hex.pm and forwarding suspicious emails to security@hex.pm.[^2]

## The server fix and the next client update

The vulnerability, CVE-2026-129514, received the maximum 10.0 score on the CVSS severity scale. A part of the server that reads incoming requests processed data before checking whether the sender was authorized. Crafted data could impersonate application objects and trigger a chain of code that ran commands on the server.[^1][^2]

The patch rejects the structures used to enter that chain. Organizations running their own copy of the hexpm registry need to deploy the fix in commit 379b0a2. A separate report describing the same flaw reached the maintainers after the attack ended; they disclosed the vulnerability on 24 November.[^2][^1]

The server patch is separate from the coming Hex client update. The maintainers expect client releases with a new signing system that supports key rotation in the coming days. The registry signing key could have been read by the attacker and had not yet been replaced. Until the update, the maintainers advise downloading packages only from repo.hex.pm, not third-party mirrors.[^2][^1]

The maintainers say they will contact affected organizations directly and update their incident post as the investigation continues.[^2]

## References

- [Hex.pm](https://www.avenews.am/en/references/hex-pm-q136294821): The package registry used by Elixir and Erlang developers, where an attacker compromised six servers.
- [GitHub](https://www.avenews.am/en/references/github-q364): The sign-in service used by some Hex.pm account holders who need to log back in to their clients.

## Sources

[^1]: [Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers](https://thehackernews.com/2026/11/hackers-exploited-cvss-100-hexpm-rce.html), The Hacker News, 25 November 2026
[^2]: [Security incident on hex.pm \| Hex](https://hex.pm/blog/security-incident-on-hexpm), hex.pm
