CVE-2026-23939 in Hexpm
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.pu...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hex | Hexpm | ≥ 2014-09-29, < 2026-02-26 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-23939 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-274893-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2026-02-26 |
| Last modified | 2026-11-20 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
Related attack patterns (CAPEC)
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22
CAPEC-126 Path Traversal via CWE-22
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A Path Traversal vulnerability exists in the hexpm/hexpm ('Elixir.Hexpm.Store.Local' module) due to improper limitation of a pathname to a restricted directory. This allows attackers to access files outside the intended directory.
The vulnerability is triggered through the 'Elixir.Hexpm.Store.Local':get/3, 'Elixir.Hexpm.Store.Local':put/4, 'Elixir.Hexpm.Store.Local':delete/2, and 'Elixir.Hexpm.Store.Local': functions in the lib/hexpm/store/local.ex file. An attacker can exploit this by providing a specially crafted path that includes relative path traversal sequences (e.g., '../') to access or manipulate files outside the intended directory.
Questions
What is CVE-2026-23939?
A Path Traversal vulnerability exists in the hexpm/hexpm ('Elixir.Hexpm.Store.Local' module) due to improper limitation of a pathname to a restricted directory. This allows attackers to access files outside the intended directory.
What is the CVSS score for CVE-2026-23939?
CVE-2026-23939 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.7%.
Is CVE-2026-23939 actively exploited?
No confirmed active exploitation of CVE-2026-23939 as of 2026-11-21.
How do I remediate CVE-2026-23939?
Priority: HIGH. PSIRT: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
What systems are affected by CVE-2026-23939?
CVE-2026-23939 affects Hex Hexpm.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Hex","product":"Hexpm","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-20.