Hex.pm Breach: Reset Your Account and Check Package Sources

An attacker ran commands on six Hex.pm servers. Account holders should change passwords and reset two-factor authentication; teams should check package sources while a signing update is prepared.

An attacker ran commands on six servers belonging to Hex.pm, the package registry used by Elixir and Erlang developers, after exploiting a flaw on November 23. The maintainers blocked the traffic and deployed a fix within 20 minutes, but cannot rule out access to account data or some private content.

In its incident report, the Hex team asks account holders to change their passwords and reset two-factor authentication. Developers should also fetch packages only from repo.hex.pm, rather than third-party mirrors, until a new registry-signing system and client releases are available.

What account holders should do

  1. Change your Hex.pm password. Database reads were not logged, so the maintainers cannot exclude exposure of password hashes, email addresses, two-factor secrets, session data and API key hashes. A hash is not a plaintext password, but weak passwords can still be guessed offline.
  2. Set up a new authenticator entry. Visit Hex’s security dashboard, select “Setup New App” under Authenticator App, and verify a code from the new entry. Store the newly issued recovery codes. Hex says this process also works when an organization requires two-factor authentication and does not permit disabling it.
  3. Sign in again where needed. Hex replaced the keys used to sign sessions and access tokens, logging users out of the website and Hex clients. Check publishing and private-package workflows for authentication failures.
  4. Watch for phishing. Navigate to Hex directly and verify links before signing in. The maintainers ask users to forward suspicious messages to [email protected].

Resetting an authenticator replaces its secret; simply re-entering an existing code would not. The advice to reset accounts is precautionary: Hex has not established that the attacker read the database.

Check mirrors and wait for the signing update

Hex rotated infrastructure credentials, including storage, email and database credentials, but its November 24 timeline listed the registry signing key among the exceptions. The team is building a signing system that supports key rotation and expects new client releases in the coming days.

Until then, Hex recommends using only repo.hex.pm. Teams can inspect local development and CI configuration for third-party mirrors and plan any necessary change with their administrators. Once the release with the new signing system is available, the team recommends updating Hex with mix local.hex --force and updating rebar3 or Gleam where used. Check the incident report for the latest release guidance before changing build tooling.

What the investigation found

The maintainers found no evidence of unauthorized package modifications, database changes or continued access. They checked files written to package storage during the incident against the database and found nothing unexpected. That is encouraging, but it is not proof that no data was read.

Private-package reads recorded during the incident appeared to come from Hex’s own servers and coincided with releases by the organizations involved. A read from a compromised server could look the same, however, and private documentation reads were not logged. Hex plans to contact affected organizations directly.

How the server flaw worked

The vulnerability, CVE-2026-129514, was in Hex.pm’s handling of unauthenticated request bodies encoded as Erlang terms. Parsing happened before routing and authentication. Although the decoder blocked functions and new atoms, it allowed maps representing forged Elixir structs. A crafted chain could reach a database-library logging callback and execute operating-system commands under the application process’s user account.

Hex changed its decoder to reject terms containing a map with a __struct__ key, closing that entry point on the service. In related work, the maintainers identified a similar class of flaw in Ash; its team released a fix in Ash 3.38.0 for CVE-2026-124283. Application teams using Ash should review their dependency version separately from the Hex account response.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

New York Bans AI Chatbot Toys for Five Years: What Parents Need to Know

Related Posts