CVEBrief

Home / hexpm / hex / CVE-2026-96612

CVE-2026-96612: is it exploited, and which versions of hexpm hex are affected and fixed?

CVE-2026-96612 is a path traversal (reading or writing files outside the intended folder) vulnerability in hexpm hex. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: hex from 0.6.0 before 2.5.2 (CVE record by EEF). Fixed in 2.5.2 (CVE record by EEF). Severity: High (7.5, CVSS 4.0, from EEF).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 08:34 UTC and NVD November 19, 2026, 07:06 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 18:09 UTC
Affected
hex from 0.6.0 before 2.5.2
CVE record by EEF
Fixed in
2.5.2
CVE record by EEF
Severity
High 7.5
CVSS 4.0 from EEF
Exploit odds (EPSS)
0.54% in 30 days
higher than 47% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2026-96612?

Path traversal in Hex via unvalidated dependency app names

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hex allows a malicious package publisher to delete a directory outside the project's deps directory and extract package files into it when a developer fetches dependencies. A package release's requirements carry an app label that names the dependency's OTP application. Hex takes this label from the repository's signed registry and uses it as the dependency's application name without validating it (Hex.RemoteConverger.deps/2, Hex.Mix.to_lock/1). Mix derives the dependency's checkout directory as deps/<app>, and Hex.SCM.update/1 runs File.rm_rf!/1 on that directory and unpacks the package into it. hex.pm only checks the label's length, so a publisher can set it to a value such as ../../target. When a project depends on such a release directly or transitively, mix deps.get or mix deps.update deletes the directory the label resolves to and writes the labelled package's files there. This happens before any dependency code is compiled. This issue affects hex: from 0.6.0 before 2.5.2.

From the CVE record by EEF, last updated November 19, 2026, 08:20 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
hexpmhexfrom 0.6.0 before 2.5.22.5.2
hexpmhex hexpm/hexnot stated

As the CVE record by EEF states it, last updated November 19, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

How severe is CVE-2026-96612?

ScoreVersionVectorSource
High 7.5CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NEEF

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-96612 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, October 16, 2026)
EPSS
0.54% probability of exploitation activity in the next 30 days, percentile 46.9 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

How do I fix it? (from the CVE record)

Upgrade Hex to 2.5.2 or later, for example with mix local.hex. Hex then skips package releases that give a dependency an application name other than a letter followed by letters, digits, _ and -, and warns about them. Resolution fails if no other release of the package fits the requirements.

Is there a workaround? (from the CVE record)

Before running mix deps.get on a mix.lock from an untrusted change, check that every key in mix.lock is a plain application name without /, \ or ... There's no workaround for new dependency resolution with mix deps.update or mix deps.get without a lock entry.

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
October 1, 2026
Published
October 12, 2026, 15:39 UTC
CVE record updated
November 19, 2026, 08:20 UTC by EEF
NVD
Deferred, last modified November 11, 2026, 14:17 UTC
Last checked
CVE list November 19, 2026, 08:34 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect hex?

Every CVE in hex

Questions about CVE-2026-96612

Is CVE-2026-96612 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.54% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of hexpm hex are affected by CVE-2026-96612?

hex from 0.6.0 before 2.5.2, per the CVE record by EEF. The tables above give every range the sources list.

Which version fixes CVE-2026-96612?

2.5.2, per the CVE record by EEF. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-96612?

High (7.5, CVSS 4.0, from EEF). The severity table above shows each score with its source.

Where is the official record of CVE-2026-96612?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.