News

Hex.pm Security Incident: What Account Holders and Build Teams Should Do

By Lapain Epuran10 min read

Being signed out of Hex.pm after an incident does not tell you what happened to the software your project downloaded from the registry.

If you publish packages or run team builds, there are two separate decisions to make: how to secure your account and where your dependencies should come from.

Three post-incident checks for Hex account holders, public dependency users, and build operators

Overview

Hex confirmed an intrusion on its own servers

The Hex incident report says someone gained the ability to run commands on six registry web servers on November 23, 2026.

Hex replaced the affected servers with patched builds and rotated infrastructure credentials and session signing keys, which explains the sign-outs reported after the incident.

That server patch is separate from changing your own account password or updating the Hex client used by your project.

The advisory tracks the server vulnerability as CVE-2026-129514, and using a newer client does not patch a self-hosted registry server.

Package checks and account exposure are different findings

Hex matched the 23 package releases published during the incident with its own records and reported no evidence that earlier releases had been altered.

The team also compared package and registry files written during the window with its database, but said documentation archives lacked stored checksums for that comparison.

That is reassurance about the package files Hex checked, not proof that the attacker could not read anything from the database.

Hex cannot rule out access to data including email addresses, password hashes, and the secrets used for authenticator codes because database reads were not logged.

The signing transition affects where you should fetch packages

The project advised fetching from repo.hex.pm rather than third-party mirrors while it prepared a signing system that supports key rotation.

On December 1, the official client release list still showed 2.7.0, with no newer signing-system release identified there.

That advice is significant even if you have never signed in to Hex, because a public package consumer still chooses which repository to trust.

  • If you have a Hex account, follow the incident advice for your password and authenticator, even if you saw nothing strange.
  • If you only fetch public packages without an account, focus on the package source and client rather than inventing an account recovery task.
  • If you maintain builds, check both developer machines and the runners that resolve or fetch dependencies on the team’s behalf.
  • If you own private packages, treat possible access and confirmed changes as separate questions and follow any direct notice from Hex.

What to do if you use Hex.pm after the incident

  1. Open Hex directly, secure any account you use, and save replacement recovery codes before removing the old authenticator entry.
  2. Verify that machines fetching public dependencies use the official repository and are not inheriting a third-party mirror setting.
  3. Keep your existing lockfiles, investigate unexpected changes, and adopt the new signing client only when Hex identifies the release.

Step 1: Decide whether you need account recovery at all

If you only run builds that fetch public packages and have never registered with Hex, you have no Hex account password to change.

If you own an account, use a trusted browser and type hex.pm yourself rather than taking the link from an unexpected reset email.

A forced sign-out is consistent with Hex changing its session keys, but a message asking for credentials or a code still needs independent verification.

If someone else owns publication for the project, share the incident through your team’s usual channel and separate publisher actions from ordinary developer actions.

If you are unsure whether a team has a Hex account, ask the package owner rather than creating a new personal account just to investigate.

The account used for an occasional manual release may differ from the service credential on the build runner, so record the two separately.

Step 2: Change your password and replace your authenticator setup

If you can sign in, open Security settings and use the password change controls to choose a unique password for Hex.

If you cannot sign in because you forgot the password, use the site’s password reset form to request a link to the primary email address.

Enter your account username or email address in that form, complete the site verification, and select Send Reset Link to request it.

Request the link yourself and open only the reset message you were expecting, which Hex’s recovery policy says is valid for 24 hours.

If that password was reused with another service, change it there separately, starting with email or accounts with publishing access.

If the reset mail does not arrive, verify that you are checking the primary mailbox assigned to the account, without forwarding a reset link.

If you already lost access to that mailbox, use Hex’s account recovery policy before assuming support can replace the address by hand.

After you regain access, use Authenticator App in Security settings, select Setup New App, and verify a code from the new authenticator entry.

Record the new recovery codes in a secure place you will still be able to reach if your authenticator device is lost.

Confirm the new setup works before removing the old entry, and do not send passwords, recovery codes, or authenticator secrets to a support caller.

Check that the password manager or other secure store contains the replacement codes, since a saved copy of the old set will not restore access.

For an organization that requires two-factor authentication, use the replacement flow instead of trying to turn off protection temporarily.

The official Hex.pm password reset form with its username or email field and Send Reset Link button

The reset form is for people who cannot remember their password; resetting the authenticator remains a separate action in the signed-in security settings.

If you sign in with a linked GitHub account, Hex’s recovery policy says its own second factor still applies when enabled.

If the authenticator is unavailable, choose to use an existing recovery code at sign-in, then set up the replacement authenticator and save its new codes.

Review the Hex account recovery policy before discarding anything, because Hex says its support team will not bypass the account’s recovery requirements on request.

If you cannot recover the only account with publishing access, let your organization’s package owners know early instead of trusting an outside recovery offer.

Step 3: Review publishing access without confusing tokens and keys

Look at the account’s packages and recent activity for actions the team cannot explain, such as a release that never went through its normal process.

Compare the package name, version, and timestamp with the source repository and the team member who actually approved that release.

If multiple teams share an organization, review recent access grants with its administrator as well as package releases displayed on your personal account.

Do not treat a signed-out client as proof of misuse, because the session rebuild affected people even if nobody used their credentials.

If an action is unfamiliar, preserve the details and notify Hex from the contact information on its site rather than replying to a surprise notice.

Hex did not recommend rotating all API keys just because their protected stored hashes could have been read during this incident.

That does not protect a plaintext key lost elsewhere, so revoke a key if it was exposed in a separate incident or is being used unexpectedly.

When replacing a key deliberately, identify the build or release job that needs it before revocation, and keep the replacement out of logs and chat.

After you replace a job credential, verify that the intended job can still read or publish what it needs without giving it extra permissions.

For maintained packages, make sure a second trusted owner or organization administrator is available so a future lockout does not block urgent security work.

Step 4: Check where team builds get public packages

Find the machine that actually downloads dependencies, which may be a CI runner, a container build, or an internal package cache instead of your laptop.

For Mix projects, use mix hex.config mirror_url and mix hex.config trusted_mirror_url in the relevant environment to inspect those settings without changing them.

The Hex configuration documentation shows that environment variables can override the settings, so check the runner’s configuration rather than only your interactive shell.

Pay particular attention to HEX_MIRROR_URL and HEX_TRUSTED_MIRROR_URL, and verify where a setting came from before changing the project or a global environment.

Check shared workflow templates and the image used to start the build, since either can set a mirror without mentioning it in the application repository.

Do not print the entire Hex configuration to a build log, because it can contain credentials that should stay inside the runner.

If a third-party mirror is configured, ask the build owner to switch public dependency fetches to the official repo.hex.pm service while Hex’s guidance applies.

If policy routes builds through an internal cache, have the owner verify its upstream source and what the cache actually served during the period under review.

Do not delete caches or change access to private repositories without a plan, since either action can stop builds while you are still diagnosing the problem.

Keep the project’s reviewed lockfile and compare unexpected version changes against the corresponding pull request or release decision before deploying a newly resolved set of dependencies.

Start with dependency changes made after November 23, noting whether a human reviewed the change or an automated update merged it under an existing policy.

Review the resolved version and its recorded checksum separately, since seeing a familiar name and version does not tell you where a build downloaded it.

The Hex Mix usage guide explains how the lockfile records dependency versions, which helps reviewers compare the builds before and after the change.

Step 5: Use the official list to choose when to update the client

Watch the official Hex client releases and look for the release that explicitly includes the new registry signing support.

Once Hex identifies that release, its recovery instructions tell Mix users to update with mix local.hex --force in the environment where Hex is installed.

Verify the version on local workstations and in CI separately, because updating your laptop does not change a prebuilt runner or container image.

If your team uses rebar3 or Gleam, follow the appropriate client release identified by Hex rather than assuming a Mix update reaches those workflows.

Before normal releases resume through a changed build path, verify a known project against its existing lockfile and make sure the team can explain any differences.

Record which build images received the new client and which teams still use older ones, rather than assuming a central update refreshed every runner.

Keep the link to the official release in the change record, so someone troubleshooting a future build can verify why that version was introduced.

Treat unexpected Hex messages as a separate problem

Potential exposure of email addresses makes a plausible-looking follow-up worth checking, but the report does not mean every account holder will receive one.

If an email claims your packages are blocked until you send a code, go directly to Hex and check your account without using that email.

Use the incident page’s published contact to report suspicious messages, and remove any private keys or recovery secrets before sharing supporting evidence.

What the report does not settle for private packages

Hex reconciled the private package reads it observed with legitimate publishing activity but said a read through a compromised server could resemble ordinary traffic.

Direct storage reads and private documentation lack some of the evidence needed to rule out access, so treat the report as a limit on certainty.

If you manage a private organization, list which packages and documentation are sensitive and designate someone to receive and verify any direct notice from Hex.

Use your approved incident process to evaluate those materials, especially if private files contain credentials or business information that would need a separate response.

Do not infer that a private package was replaced merely because its contents may have been readable; ask which concern the evidence actually supports.

Frequently Asked Questions

Does this mean a package I downloaded was definitely tampered with?

No, Hex reported no unauthorized package change in the checks it described, although that does not make an unverified mirror a safe source.

Do public package users need to request a password reset?

If you do not have a Hex account, there is no account to reset, but you should still verify which registry your build uses.

Is changing my password enough if I use an authenticator?

Hex asked users to replace their authenticator setup as well, because a password change does not replace the secret used to create those codes.

Should my team rotate all Hex API keys immediately?

Hex did not recommend blanket rotation for the stored key hashes, but act on any evidence that an actual key was exposed or misused.

Does using GitHub sign-in let me skip my Hex recovery code?

Hex says its own second factor can still be required after linked GitHub sign-in, so use the established recovery options instead of bypassing them.

Why not download the newest package versions just to be safe?

Unrelated upgrades replace known dependency versions without addressing where the packages came from, so first verify the source and review changes to the lockfile.

The Bottom Line

Protect your Hex account by changing the password and replacing the authenticator setup, but do not assume that those steps repair a build’s dependency source.

Use the official package repository while Hex’s interim advice applies, then update the relevant clients when the project identifies the new signing release.

Send this to someone