CVE-2026-23939 Details
Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm (Hexpm.Store.Local module) allows Relative Path Traversal. This vulnerability is associated with program files lib/hexpm/store/local.ex and program routines Hexpm.Store.Local.get/3, Hexpm.Store.Local.put/4, Hexpm.Store.Local.delete/2, Hexpm.Store.Local.delete_many/2. This issue does NOT affect hex.pm the service. Only self-hosted deployments using the Local Storage backend are affected. This issue affects hexpm/hexpm: from 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.
A path traversal vulnerability has been identified in the Hexpm package manager's local storage backend, specifically in versions from commit 931ee0e prior to commit 5d2ccd2. This vulnerability allows relative path traversal, enabling arbitrary file reads or writes within the permissions of the running process. The issue arises because user-controlled path parameters are not properly sanitized before being used as storage keys, allowing attackers to manipulate the paths and access unintended files. This vulnerability does not affect the production version of hex.pm, but it does impact self-hosted deployments using the local file storage backend, as well as development and test environments.
Users can upgrade to the patched version available in commit 5d2ccd2. If an immediate upgrade is not possible, the local file store backend should be avoided in any exposed environment, and network access to the registry should be restricted when using the local backend. Production deployments should use object storage instead of the local filesystem store.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | EEF |
Affected Products
| Product | Versions |
|---|---|
| hex hexpm | >= 2014-09-29, < 2026-02-26 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 6, 2026 | CVE Modified | EEF |
| Mar 23, 2026 | Initial Analysis | [email protected] |
| Feb 26, 2026 | New CVE Received | EEF |