Unbiased headlines. Facts, not spin.
Unbiased Headlines is an independently owned news organization. We bring you the facts, not opinions, written fresh from 110+ named sources. Sources linked so you can verify it yourself.
Hex.pm Says Attacker Ran Commands on Six Registry Servers Using a Flaw Dating to 2016

An attacker ran operating system commands on six production servers of Hex.pm on Monday, Nov. 23. Hex.pm is the package registry Elixir and Erlang developers pull their dependencies from.
The flaw, tracked as CVE-2026-129514, carries the maximum CVSS score of 10.0. It required no account. The Hex team's incident report, published Tuesday, Nov. 24, traces the flaw to a safety check that was removed from the code on February 23, 2016.
What happened on Monday
The maintainers say the attacker sent 69 malicious requests between 18:16 and 18:29 UTC, all from two addresses. Investigators confirmed command execution by matching files created on the servers to the request timestamps. In one case a file appeared just 3 milliseconds after the request.
Three of the six affected servers joined mid-attack, when a restart brought up machines still running the vulnerable build. Every server was running the patched build by 18:31 UTC, about 15 minutes after the first malicious request.
Exploitation before Monday has not been established, according to the maintainers. Hex has not identified the attacker. Activity from the two addresses going back to late last week suggests the attacker built a local copy of hex.pm to test against, the team said.
How the bug worked
The weak point was the parser that reads request bodies sent in an Erlang data format. It ran before routing and authentication, so an unauthenticated POST request to any address on the site could reach it.
The decoder was meant to be safe and blocked dangerous terms such as functions. But it accepted maps carrying a `__struct__` key. That let a request body pose as any Elixir struct the application had loaded.
The struct did nothing on its own. It triggered an error, and the error-reporting code then inspected it. That inspection ran through the Ecto and DBConnection database libraries to a point where the server called a function of the attacker's choosing. The function executed operating system commands with the permissions of the registry's service account.
The fix rejects any decoded term containing a map with a `__struct__` key.
Packages untouched, account data uncertain
Hex says it found no altered packages. To check, the team compared every database table against a copy taken two minutes before the first exploit request and traced each difference to normal activity. All 23 releases published during the attack match the audit log, no older release was changed, and the package and registry files written that evening match the database records. The checks found no leftover shells and no new accounts or cloud keys in the audit logs.
The harder question is user data. Database reads, shell commands, environment variables and direct reads from file storage were not logged. "We cannot rule out that the attacker accessed data stored in the database," the team wrote. That database holds email addresses, password hashes, API key hashes, two-factor authentication secrets and session data, and private packages could also have been read without leaving a trace.
That gap is the story. The maintainers can prove what was changed. They cannot prove what was looked at.
What Hex did and what users are told to do
By Tuesday morning the team had replaced every credential the attacker could have read except the registry signing key. On Monday night it reported the breach to the Swedish data protection authority, to CISA in the United States and to ENISA in the European Union. The team also replaced the keys that sign sessions and access tokens, which logged every account holder out.
The team's instructions for people with accounts:
- Change your hex.pm password.
- Reset two-factor authentication by choosing "Setup New App" under Authenticator App in Dashboard → Security, verify a code, and save the new recovery codes.
- Log back in through the client with `mix hex.user auth`, or `rebar3 hex user auth` for Erlang projects.
- Check that any email claiming to come from Hex links to hex.pm, and forward suspicious messages to security@hex.pm.
API keys do not need replacing, the team says. They are random 128-bit values stored only as HMAC-SHA256 hashes, which the team says cannot realistically be brute-forced. Passwords are hashed with bcrypt. Hex acknowledges that this slows guessing but does not stop it for weak passwords, which is why it still wants them changed.
Peter Ullrich, one of the report's authors, clarified on the Elixir Forum that developers who never created an account and only fetch public packages have nothing to reset. People who signed up through GitHub should still log back in to their clients and reset 2FA if they enabled it.
Fallout beyond Hex
The registry signing key has not yet been replaced, and it was among the credentials the attacker could have read. Until Hex ships clients with a new registry-signing system, the advice is to fetch packages only from repo.hex.pm and avoid third-party mirrors. The release is expected within days. Mix users can then update with `mix local.hex --force`, and rebar3 and Gleam users should update those tools too.
The investigation also turned up a related issue in Ash, fixed in version 3.38.0. Projects using db_connection should upgrade to 2.10.3 or later. Maintainers of three widely used Elixir libraries disclosed flaws of their own involving structs built from untrusted data. These are separate disclosures, not further attacks on Hex.pm, and each needs its own conditions to be exploited.
The underlying function may exist elsewhere. On the Elixir Forum, a user asked whether Phoenix relies on the same Plug.Crypto function. Ullrich answered that Phoenix uses it to decode cookies, but only after verifying a signature. He said the team is aware of this and might change it soon. He pointed to the dependents of plug_crypto as the place to look for other uses.
Two things remain open. One is whether the attacker read any account data, which Hex's own logging cannot answer. The other is when the new signing system ships, since the old key stays in use until it does.
Sources used for this briefing
7 links from 7 independent newsrooms (syndicated copies of the same report count once)
These are the sources it draws on, linked so you can verify.