What happened in the hex.pm security incident

The hex.pm security incident began on Monday, November 23, 2026, when attackers used a single flaw to run operating system commands on six production web servers, according to Hex's own incident post. The company disclosed the intrusion on Tuesday and now tells account holders to change their passwords and reset two-factor authentication. The vulnerability, tracked as CVE-2026-129514 and GHSA-9pmm-hf4r-27pg, carries a CNA-assigned CVSS v4.0 score of 10.0, the top of the scale.

Hex.pm is the package registry for Elixir and Erlang developers. It hosts more than 27,000 packages and has served over 16 billion downloads, according to its homepage. Teams that build with Elixir, Erlang or Gleam fetch dependencies from it during routine builds, so a breach of the registry server reaches well beyond one company's code.

The attack window was short. Hex says malicious requests reached six hosted web servers between 18:16 and 18:29 UTC, and it blocked the activity and deployed a fix within about 20 minutes, as the Hex team's Elixir Forum post describes. Some reports put the patch at 15 to 20 minutes after the first malicious request, so the exact figure depends on the source.

The attacker appears to have been working well before that. Hex's reporting, as CyberKendra summarizes it, points to activity since November 19 that suggests the attacker built a local copy of hex.pm to test against. That was possible because the hexpm server code is open source. Hex has not said who the attacker is or what they wanted.

Date What happened
Feb. 23, 2016 Affected range begins for hex.pm
Nov. 19, 2026 Earliest attacker activity Hex has described
Nov. 23, 2026, 18:16–18:29 UTC Malicious requests reach six web servers
Nov. 23, 2026 Fix deployed, about 20 minutes after the first malicious request
Nov. 24, 2026, 13:48 Hex publishes its disclosure

How the flaw reached the request parser

The bug is an unauthenticated deserialization flaw in the request-body parser. Unauthenticated POST requests could reach that parser before routing and authentication ran, so an attacker did not need an account or a valid session, according to ZeroHour's summary.

Hex places the fault in its own code. The team says the service decoded unauthenticated request bodies in Erlang term format. That format blocks most harmful terms, but it lets struct values through, and the attacker used that gap.

The exposure lasted more than a decade. According to SOCRadar's analysis, the service has been affected since February 23, 2016, until the fix deployed on November 23, 2026. Most dependency audits examine the packages a project pulls in, not the server that serves them, so a bug like this can sit unnoticed for years. Registry operators need the same scrutiny they give the packages they host.

Which data may be exposed

Hex says the potentially exposed information includes email addresses, password and API-key hashes, two-factor authentication secrets, sessions and audit logs, as hn.today's summary of the disclosure reports. Hashes are not plaintext passwords, but a leaked 2FA secret can weaken one of the main defenses on an account. That is why the company is asking for resets.

Hex also rotated the credentials the affected servers could reach. That covered storage, CDN, email and database credentials. The company rotated session and access-token signing keys as well, which logged users out.

The package picture is better but not settled. The Hex team's Elixir Forum post says, "We found no evidence that packages were modified," and the same post says the team cannot rule out database reads. The Cloud Security Alliance's research note says Hex cannot rule out reads of email addresses, password hashes, 2FA secrets and private packages. Hex has not published the number of affected accounts.

What to do if you have a hex.pm account

Not every developer needs to act. Developers who only fetch public packages and never created an account have nothing to reset, according to one of the report's authors. Hex's guidance says the same for users who run dependency fetches without an account. If you do hold an account, work through these steps:

  1. Change your hex.pm password in the dashboard security section.
  2. Reset two-factor authentication by creating a new authenticator entry, then save the new recovery codes.
  3. Log back in to your Hex client with mix hex.user auth or rebar3 hex user auth.
  4. Fetch packages only from repo.hex.pm, and avoid third-party mirrors until the new client ships.
  5. Check that any Hex email links point to hex.pm, and treat unsolicited reset links as suspicious.

Step five matters because breaches like this invite phishing. GBHackers advises developers to open Hex directly rather than follow account-reset links from unsolicited messages, a precaution it ties to earlier phishing campaigns against npm maintainers.

If you signed up through GitHub, one report says you should still complete the client login and package-fetch steps, and reset 2FA if you set it up. Password managers help with the reset itself. Our 1Password breach coverage shows why exposed contact data and exposed secrets call for different responses.

API keys are the one area where the guidance is less demanding. Hex says they do not need rotation because they are stored as hashes of random 128-bit values, according to Brandefense. Some organizations may still rotate CI publishing keys for extra assurance. For a pipeline that holds a publish token, rotating it is cheap insurance.

Who else needs to patch

The flaw sits in hexpm server code, not in the Hex client, so updating your client does not close the hole. Organizations that run their own copy of the registry remain affected until they deploy the patched code, and that includes self-hosters running the hexpm web application, as Khanlist reports.

Regulatory reporting is unsettled. Mallory reports that Hex notified Sweden's data protection authority, IMY, reported the incident to CISA and sent an early warning to ENISA. Hex's own post does not confirm those filings, so treat them as unverified until the company or the agencies confirm them.

Federal tracking is also incomplete. CISA added 10 entries to its Known Exploited Vulnerabilities catalog on November 25, based on evidence of active exploitation. The Hex flaw did not appear in the KEV entries reviewed for this story.

What to watch next

Hex says a new client with registry signing support is expected "within days," but no date has been confirmed. Until that client ships, the advice to fetch only from the official registry stays in force. Teams that mirror packages should decide whether those mirrors can be trusted for now.

Several questions remain open: who the attacker is, whether private packages were read, whether CISA adds the CVE to its catalog, and whether the regulatory filings are confirmed. Hex's blog and the Elixir Forum thread will likely carry those updates first, so check them before assuming a reset is finished. Our Barracuda coverage traced another breach to a forgotten AI vendor key, a reminder that credentials nobody remembers can outlive the people who issued them.

If the signing system ships on schedule, developers will be able to verify packages independently of the server that delivers them. That matters most for teams that never had a reason to question the registry until this week.