# Symlink Following in Hex Package Export Allows Embedding Files Outside Project Root

CVE record · `CVE-2026-42795`

- **Identifiers:** `CVE-2026-42795`
- **State:** Confirmed
- **Severity:** CVSS 5.1 Medium
- **Critical:** No
- **CNA:** EEF
- **Weakness (CWE):** [CWE-59](https://cwe.mitre.org/data/definitions/59.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Technologies:** [Gleam](https://agentprime.io/advisories/technology/gleam.md)
- **Published:** 2 Jun 2026
- **Updated:** 8 Sept 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: EEF) at 2 Jun 2026, 13:41 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Gleam. Product: Gleam.
  - affected: `0.10.0-rc1 to before 1.17.0` (semver)
  - Other versions: unaffected
  - Package name: `gleam`
  - purl: `pkg:software-id/gleam.run/gleam`
- Vendor: Gleam. Product: Gleam.
  - affected: `0.10.0-rc1 to before 1.17.0` (semver)
  - affected: `c82a2d83bd0c06cafdc196820deb3f89a9b3ff7c to before 6435a5528b9ae0449e2f32be579641ec485f6866` (git)
  - Other versions: unaffected
  - Package name: `gleam-lang/gleam`
  - Collection: `https://github.com`
  - purl: `pkg:github/gleam-lang/gleam`
- Vendor: Gleam. Product: Gleam.
  - affected: `v0.10.0-rc1-elixir to before v1.17.0-elixir` (other)
  - affected: `v0.10.0-rc1-erlang to before v1.17.0-erlang` (other)
  - affected: `v0.10.0-rc1-node to before v1.17.0-node` (other)
  - affected: `v0.10.0-rc1-node-slim to before v1.17.0-node-slim` (other)
  - affected: `v0.10.0-rc1-elixir-slim to before v1.17.0-elixir-slim` (other)
  - affected: `v0.10.0-rc1-erlang-slim to before v1.17.0-erlang-slim` (other)
  - affected: `v0.10.0-rc1-erlang-alpine to before v1.17.0-erlang-alpine` (other)
  - affected: `v0.10.0-rc1-elixir-alpine to before v1.17.0-elixir-alpine` (other)
  - affected: `v0.10.0-rc1-node-alpine to before v1.17.0-node-alpine` (other)
  - affected: `v0.10.0-rc1-scratch to before v1.17.0-scratch` (other)
  - Other versions: unaffected
  - Package name: `gleam-lang/gleam`
  - Collection: `https://ghcr.io`
  - purl: `pkg:oci/gleam?repository_url=ghcr.io/gleam-lang`

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 5.1 Medium, CVSS 4.0: `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`, from CNA (EEF)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0020, the 9th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 2 Jun 2026. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2026-42795](https://www.cve.org/CVERecord?id=CVE-2026-42795)
- [NVD: CVE-2026-42795](https://nvd.nist.gov/vuln/detail/CVE-2026-42795)

### References from the CNA

- <https://github.com/gleam-lang/gleam/security/advisories/GHSA-qhh5-fg4c-8gqc> (vendor-advisory, related)
- <https://cna.erlef.org/cves/CVE-2026-42795.html> (related)
- <https://osv.dev/vulnerability/EEF-CVE-2026-42795> (related)
- <https://github.com/gleam-lang/gleam/commit/6435a5528b9ae0449e2f32be579641ec485f6866> (patch)

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2026-42795>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2026-42795/>. Everything for agents: <https://agentprime.io/llms.txt>.
