CVE-2026-23939: Path Traversal in Local File Store Backend
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm ('Elixir.Hexpm.Store.Local' module) allows Relative Path Traversal. This vulnerability is associated with program files lib/hexpm/store/local.ex and program routines 'Elixir.Hexpm.Store.Local':get/3, 'Elixir.Hexpm.Store.Local':put/4, 'Elixir.Hexpm.Store.Local':delete/2, 'Elixir.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: from 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-23939?
The severity of CVE-2026-23939 is considered critical due to the potential for relative path traversal.
How do I fix CVE-2026-23939?
To fix CVE-2026-23939, update the hexpm/hexpm application to a version that addresses the path traversal vulnerability.
Which versions of hexpm/hexpm are affected by CVE-2026-23939?
Versions between 931ee0ed46fa89218e0400a4f6e6d15f96406050 and 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0 are affected by CVE-2026-23939.
What is the impact of CVE-2026-23939?
The impact of CVE-2026-23939 includes unauthorized access to files outside the intended directory.
Is CVE-2026-23939 related to file security?
Yes, CVE-2026-23939 is directly related to file security as it allows potential unauthorized file access through path traversal.