Hex.pm says an attacker exploited a remotely reachable code-execution flaw in its package registry on November 23, 2026, and ran commands on six of its web servers. The service says it blocked the traffic and deployed a fix within about 20 minutes. Its investigation found no evidence that published packages or database records were changed, or that the attacker kept access, but Hex cannot rule out database reads because those were not logged.
The uncertainty matters for account holders. Hex says its database includes email addresses, password hashes, API-key hashes, two-factor secrets, sessions and audit logs that could have been read. It asks users to change their Hex password and reset their authenticator secret and recovery codes. The company also warns users to verify that links in messages lead to hex.pm, since email addresses may have been exposed.
A request parser reached code before authentication
Hex tracked the bug as CVE-2026-129514. Its incident write-up says the service accepted request bodies in Erlang external-term format and decoded them before route authentication. A crafted value could pass through the parser as a struct-shaped map. When the request later triggered an error, protocol inspection and logging behavior allowed attacker-controlled data to reach code that ran operating-system commands.
The security report is technically unusual because the exploit chain crossed several libraries: request parsing, method handling, error inspection and database-connection logging. The important defensive point is that the risky behavior occurred in a server-side input path before normal authorization checks. The attacker did not need a valid Hex account to send the malformed request.
Hex says it fixed the entry point by rejecting decoded terms that contain a struct key. The change was deployed to all web servers on November 23. The project also listed follow-up hardening work in Plug.Crypto, Plug, Ecto and DBConnection so later layers can reject invalid structures or avoid executing logging callbacks from untrusted data.
What Hex checked, and what remains unknown
The registry reports 69 malicious requests between 18:16 and 18:29 UTC, with six web servers affected. Its response timeline says a firewall rule took effect between 18:30 and 18:33, patched servers were running by 18:31, and subsequent traffic from the attacker’s address was denied. Hex later rotated server credentials that the attacker’s commands could have read, including storage, CDN, email and database credentials, along with session and access-token signing keys.
Hex compared package-storage writes against its database and said it found no unexpected package files or unauthorized releases. It also compared database rows against a pre-incident snapshot and found no unexplained changes. Those checks support the company’s statement that it found no package tampering or database writes; they do not prove that no information was read. The company specifically says database reads, environment-variable reads and shell commands are not logged, and it cannot fully exclude reads of private package documentation from direct cloud storage.
Hex also says it has no evidence that the attacker maintained access after the servers were replaced, and its cloud audit review found no new keys, accounts or API calls from the attacker addresses. That is a bounded finding from logs and systems the company reviewed, not a guarantee that every possible exposure has been reconstructed.
What Hex users and publishers should do
Hex’s own immediate account advice is to change the password at hex.pm and reset two-factor authentication with a new secret and recovery codes. Users should use the official dashboard reached by typing the domain themselves, and review sign-in or package activity available in their accounts. Because email addresses may have been exposed, treat unexpected “Hex” messages and credential-reset links cautiously.
For package fetching, Hex says a new registry-signing system and updated clients are in progress. Until the client release is available, it advises users to fetch packages only from repo.hex.pm and not to trust third-party mirrors. The Hex 2.6 release notes describe the registry’s existing supply-chain controls, but the incident post’s temporary mirror restriction is the current incident-specific advice. Update Hex, Rebar3 or Gleam clients when Hex publishes the signing-system release instructions.
Package publishers should also check their organizations’ Hex access, recent releases and CI credentials, then rotate any secrets that were reused in the registry or present in an environment that could have been exposed. Hex’s post says it will contact organizations whose private-package access may have been affected. The registry found no unauthorized published package modifications, so maintainers should not infer that their package was altered solely because the service was compromised.
Hex separately says it found the same vulnerability class in Ash pagination and that the Ash team released version 3.38.0 with a fix on November 24. That is a separate library issue, not evidence that an Ash package or Hex publisher was compromised; teams using Ash should follow the project’s advisory and upgrade guidance.
VIBPS recently covered a malicious npm package that targeted users of a particular integration. That incident began with a package consumers could install; the Hex event involved command execution on the registry service itself. The difference changes the response: verify package integrity and dependency sources, but also secure registry accounts and heed Hex’s temporary signing and mirror instructions.
What did the malicious Leadstack npm package do?
The confirmed facts are serious without overstating them: an unauthenticated exploit ran commands on registry servers; the service was patched rapidly; the publisher says it found no package changes; and it cannot rule out reads of some account data. Users should take the account and package-fetching steps Hex has published while the new signing flow becomes available.
