{
  "id": "CVE-2026-23939",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-23939",
  "published_at": "2026-02-26T19:41:18.762Z",
  "title": "Path Traversal in Local File Store Backend",
  "vendor": "hexpm",
  "product": "hexpm",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.\n\nThis 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.\n\nThis issue does NOT affect hex.pm the service. Only self-hosted deployments using the Local Storage backend are affected.\n\nThis issue affects hexpm/hexpm: from 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.9,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "hexpm",
        "product": "hexpm",
        "ranges": [
          "\u003e= 931ee0ed46fa89218e0400a4f6e6d15f96406050, \u003c 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0"
        ],
        "fixed_in": [
          "5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade hexpm to 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0 or later."
    ],
    "workarounds": [
      "* Avoid the local file store backend in any exposed environment.\n* Restrict network access to the registry when using the local backend.\n* Production deployments should use object storage (e.g., S3-compatible backends) instead of the local filesystem store."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/hexpm/hexpm/security/advisories/GHSA-42mv-r64p-4869"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/hexpm/hexpm/commit/931ee0ed46fa89218e0400a4f6e6d15f96406050"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/hexpm/hexpm/commit/5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
