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.
