Hex.pm Attack Hits Six Servers: What Users Should Reset

Hex.pm urged password and 2FA resets after an attack hit six servers. Learn what to check in your account and how to verify package downloads in CI.

Written By
Michelle Lojo
Michelle Lojo
Nov 26, 2026
3 minute read
Hex.pm urged users to change their passwords and reset authenticator-based two-factor authentication after an attack hit six of its web servers.

Hex.pm urged users to change their passwords and reset authenticator-based two-factor authentication after an attack hit six of its web servers. Image generated via ChatGPT.

eSecurity Planet content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Changing a Hex.pm password leaves one piece of the old login intact. Users who set up an authenticator app need to replace the secret that generates their sign-in codes, too.

Hex.pm, the package registry used by Elixir and Erlang developers, said an attacker exploited a critical vulnerability on Nov. 23 and ran commands on six of its web servers. The maintainers rotated infrastructure credentials and the keys that sign sessions and access tokens, logging users out of the site and Hex clients. Hex asked account holders to change their passwords and reset authenticator-based two-factor authentication (2FA) if they use it.

The Nov. 24 incident report says investigators found no evidence of package tampering or continued access. The registry did not log database reads, leaving Hex unable to tell whether the attacker viewed account data such as email addresses, password hashes, and two-factor authentication secrets.

What Hex.pm could verify

Advertisement

Hex tracked 69 malicious requests between 18:16 and 18:29 UTC. By 18:31 UTC, it had replaced all its servers with a patched build. The maintainers’ advisory lists the flaw as CVE-2026-129514, with a severity score of 10.0 out of 10.

Investigators matched all 23 releases published during the incident to publish or stage entries in the registry’s audit logs and found no changes to older releases. That finding matters to teams deciding whether to pull a release from production. In the Axios npm incident, attackers published malicious versions, giving defenders specific releases to look for. Hex has identified no comparable set of affected package versions.

The evidence for private packages is less complete. Hex said the private downloads it observed lined up with legitimate releases from the organizations involved. A download from a compromised server could still have looked like routine traffic. Hex found no requests for private documentation from the attacker’s addresses in its CDN logs. Direct reads from cloud storage went unlogged. Hex said it would contact affected organizations directly.

Advertisement

Why the registry signing key matters

The keys Hex replaced signed account sessions and access tokens. A separate signing key lets clients verify registry metadata, the information they use to resolve package versions. The attacker could have read that key from a compromised server, but Hex couldn’t verify whether they did. The key was still awaiting rotation when Hex published its Nov. 24 report. Hex said it was developing a signing system that supports key rotation and asked users to fetch packages only from repo.hex.pm in the meantime.

A registry incident can reach teams that rarely sign in to the website. Build jobs make their own package requests, and a job that works today may have used a local cache. The Checkmarx supply chain incident showed how development tools can expose credentials inside automated builds. For Hex users, the immediate question is which package source and credentials those jobs actually use.

Advertisement

How to check accounts and build pipelines

Hex account holders should check their sign-in settings. Developers who only download public packages can start with the repository and client checks.

  • Reset your Hex account from the site. Change your Hex password if you have one. In Dashboard → Security → Authenticator App, select Setup New App, verify a code from the new entry, and save the new recovery codes. If you sign in with GitHub and set up 2FA on Hex itself, reset that authenticator too. Treat unexpected reset emails as potential credential phishing.
  • Sign in to your Hex client again. For account holders, the maintainers advise running mix hex.user auth for Mix or rebar3 hex user auth for rebar3. If a CI job fails to fetch a private package, check which credential the runner uses. Hex says possible exposure of stored API key hashes alone doesn’t require rotating those keys.
  • Check where your builds get packages. In Mix, run mix hex.config on the runner to check for mirror overrides. Fetch the versions in your lockfile with an empty dependency cache and confirm the requests go to repo.hex.pm. Keep signature and checksum verification enabled.
Advertisement

When Hex releases the signing update, install it on developer machines and in CI images. Hex recommends mix local.hex --force for Mix users and updating rebar3 or Gleam if you use them. On the next build, check the client version in the job log and repeat the clean fetch.

Read more: How compromised GitHub accounts exposed build workflows to credential theft and what to look for in your own repositories.

Michelle Lojo

Michelle Lojo is an editor with eight years of experience in journalism. She covers the developments, companies, and emerging trends shaping enterprise technology. Her editorial work focuses on clear, well-researched reporting that helps business and IT leaders understand a rapidly changing technology landscape.

eSecurity Planet Logo

eSecurity Planet is a leading resource for IT professionals at large enterprises who are actively researching cybersecurity vendors and latest trends. eSecurity Planet focuses on providing instruction for how to approach common security challenges, as well as informational deep-dives about advanced cybersecurity topics.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.