Path Traversal Vulnerability in Hex Package Manager by Hex.pm
CVE-2026-96612

7.5HIGH

Key Information:

Vendor

Hexpm

Status
Vendor
CVE Published:
12 October 2026

What is CVE-2026-96612?

A path traversal vulnerability exists in the Hex package manager that allows a malicious package publisher to exploit the application's dependency handling. By manipulating app labels in the package's requirements, an attacker can specify a file path that leads outside the intended directory structure, particularly targeting the project's dependencies directory. When a developer retrieves dependencies using commands like mix deps.get or mix deps.update, the affected version of Hex does not validate these labels effectively. This results in the unauthorized deletion of files outside the project's directory and allows package files to be extracted into these locations before the associated dependency code is compiled. This vulnerability can lead to significant security risks for projects relying on affected versions of Hex.

Affected Version(s)

hex 0.6.0 < 2.5.2

hex 380f87054e1bc08ee13d2b5311bc01f98dad2fc6

References

CVSS V4

Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Peter Ullrich
Eric Meadows-Jönsson
Jonatan Männchen / EEF
.