Skip to content
Security Audit

Security Audit

hex.pm • November 24, 2026

Over the past months, we conducted the first comprehensive third-party security audit of Hex.pm and its surrounding ecosystem. This work was made possible by Alpha-Omega , an initiative under the OpenSSF that funds security improvements for critical open source projects. The audit was carried out as part of the Erlang Ecosystem Foundation's Ægis initiative .

We worked with two independent security firms:

Paraxial.io (white-box penetration testing)

zentrust partners GmbH (adversarial / red-team style assessment)

Both teams reviewed the Hex registry, clients, documentation infrastructure, and supporting systems across the Erlang, Elixir, and Gleam ecosystem.

We are publishing the full reports today:

Alpha-Omega engagement overview

Hex is critical infrastructure for the BEAM ecosystem. It underpins package distribution for Erlang, Elixir, and Gleam, and is used in production systems across thousands of organizations.

Until now, no comprehensive external audit had been performed. The goal of this work was to:

validate the current security posture

identify real-world attack paths

remediate issues quickly

establish a baseline for future work

This was explicitly scoped as a review of the current system, not future roadmap items like attestations or SLSA, which will follow later.

Across both audits, a number of issues were identified, ranging from high severity vulnerabilities to low-severity hardening gaps.

Unsafe deserialization in hex_core that could lead to RCE under certain conditions

A denial of service condition during package uploads

Weaknesses in authentication flows and API key handling

Gaps in CI/CD hardening (GitHub Actions)

Missing or incomplete security controls in some areas

Importantly, the audits focused on realistic attack scenarios such as:

cross-account package tampering

bypassing integrity checks

injection in public-facing features

Most findings have been remediated during the engagement and confirmed in re-tests.

Fixed unsafe deserialization in hex_core ( CVE-2026-21619 )

Fixed API key privilege escalation ( CVE-2026-21621 )

Fixed password reset issues ( CVE-2026-21622 )

Fixed XSS in OAuth device flow ( CVE-2026-21618 )

Fixed denial of service in package upload ( CVE-2026-23940 )

Removed sensitive credentials from repositories

Hardened authentication flows (including "sudo mode" for sensitive actions)

Disabled legacy TLS versions

Improved CSP and other browser security controls

Re-tests by both firms confirmed that the majority of vulnerabilities were successfully remediated.

Several remaining items are either:

accepted risks with clear rationale (for example UX trade-offs or staged migrations), or

dependent on ecosystem-wide changes (for example client updates)

What we decided not to change (yet)

Some findings reflect intentional trade-offs or transitional states rather than vulnerabilities.

Basic authentication and optional 2FA are still supported for compatibility with existing clients. Both will be phased out once all clients support the OAuth2 device flow.

Certain features (like documentation hosting) intentionally allow user-provided content and are being isolated rather than restricted.

These decisions were reviewed jointly by the Hex.pm team and the EEF.

We are wrapping up a few remaining items:

Finish the transition away from Basic Auth by adding OAuth2 Device Grant support to Rebar3

Add stronger isolation for HexDocs package documentation

Expand security documentation and threat modeling for the ecosystem

Implement API key expiry

A big thank you to Alpha-Omega for funding this work, and to Paraxial.io and zentrust partners for the thorough reviews.

This was the first audit of its kind for Hex and the BEAM ecosystem. It surfaced real issues, led to concrete fixes, and gives us a solid baseline to build on. We plan to continue this kind of work going forward.

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Hex.pm Hosted Registry RCE (CVE-2026-129514) Exploited Against Six Web Servers; Account Resets Advised Hex.pm, the package registry for Erlang, Elixir and Gleam, disclosed that an unauthenticated remote code execution flaw, CVE-2026-129514 (CVSS 10.0), was exploited on November 23, 2026 to run OS commands on six hosted web servers. According to Hex's account, the attacker sent 69 exploit requests over about 13 minutes, and a firewall rule and patched build were deployed by 18:31 UTC. The flaw sat in a request-body parser that accepted Elixir struct markers before routing and authentication; the vulnerable check was removed on February 23, 2016. Hex says it found no evidence of unauthorized package modification or database changes, but because database reads are not logged it cannot rule out access to email addresses, password hashes, 2FA secrets, sessions and audit logs. Hex reports that activity since November 19 suggests the attacker built a local copy of hex.pm to test against, and that an emailed report of the same vulnerability arrived 35 minutes after the fix; the reporter's link to the attack is not stated. Hex replaced its infrastructure credentials and session/token signing keys, which logged all users out, and asks users to change passwords and reset 2FA. The registry signing key had not yet been replaced at the time of reporting, and Hex advises fetching packages only from repo.hex.pm until a new client ships. One dark-web post referencing the CVE was recorded by Brandefense; that count reflects discussion, not confirmed additional intrusions. 6 sources 77