CVE-2026-23939: Path Traversal in Local File Store Backend

Published Feb 26, 2026
·
Updated

Summary

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.deletemany/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.

Workarounds

Avoid the local file store backend in any exposed environment. Restrict network access to the registry when using the local backend. Production deployments should use object storage (e.g., S3-compatible backends) instead of the local filesystem store.

Configurations

Only self-hosted hexpm deployments using the Hexpm.Store.Local storage backend are affected. The hex.pm service and deployments using S3-compatible object storage backends are not affected.

Other sources

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.deletemany/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.

— MITRE

Affected Software

2 affected components
hexpm/hexpm>=931ee0ed46fa89218e0400a4f6e6d15f96406050<5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0
Hex hexpm>=2014-09-29<2026-02-26

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Use an object-storage backend, such as an S3-compatible backend, instead of the local filesystem store in production or exposed deployments.

  2. Compensating control

    Restrict network access to the registry when using the local storage backend.

Event History

Feb 26, 2026
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionWeakness
Data Sourced
via OSV·07:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:31 PM
DescriptionSeverityWeakness
Mar 23, 2026
Data Sourced
via NVD·05:12 PM
RemedyAffected Software
Updated
via NVD·05:12 PM
Severity
Nov 20, 2026
Updated
via MITRE·02:54 AM
Description
Updated
via NVD·03:17 AM
Description

Frequently Asked Questions

1

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.

2

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.

3

Which versions of hexpm/hexpm are affected by CVE-2026-23939?

Versions between 931ee0ed46fa89218e0400a4f6e6d15f96406050 and 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0 are affected by CVE-2026-23939.

4

What is the impact of CVE-2026-23939?

The impact of CVE-2026-23939 includes unauthorized access to files outside the intended directory.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203