Home / Gleam / Gleam / CVE-2026-42795
CVE-2026-42795: is it exploited, and which versions of Gleam are affected and fixed?
CVE-2026-42795 is a link following (a symlink lets an attacker reach other files) vulnerability in Gleam. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: Gleam from v0.10.0-rc1-elixir before v1.17.0-elixir, Gleam from v0.10.0-rc1-erlang before v1.17.0-erlang, Gleam from v0.10.0-rc1-node before v1.17.0-node and 8 more (CVE record by EEF). Fixed in v1.17.0-elixir, v1.17.0-erlang, v1.17.0-node, v1.17.0-node-slim and 2 more (CVE record by EEF). Severity: Medium (5.1, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 20, 2026, 06:15 UTC and NVD November 20, 2026, 07:04 UTC.
What is CVE-2026-42795?
Symlink Following in Hex Package Export Allows Embedding Files Outside Project Root
Symlink following vulnerability in Gleam's Hex package export allows files outside the project root to be embedded in the generated package tarball. The file collection helpers (gleam_files, native_files, private_files) in compiler-cli/src/fs.rs use follow_links(true) when walking publishable directories such as src/ and priv/. The collected paths are added to the package archive via add_path_to_tar in compiler-cli/src/publish.rs without verifying that the resolved target remains within the project root. A symlink placed under a publishable directory will cause gleam export hex-tarball or gleam publish to embed the contents of the symlink target into the generated Hex package. An attacker with write access to the project repository can place a symlink in src/ or priv/ pointing to an arbitrary file. When a maintainer or CI pipeline runs gleam publish or gleam export hex-tarball, local files readable by the publisher (such as secrets, tokens, or SSH keys) are silently embedded into the published package artifact. This issue affects gleam: from 0.10.0-rc1 before 1.17.0.
From the CVE record by EEF, last updated November 20, 2026, 05:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Gleam | Gleam gleam-lang/gleam | from v0.10.0-rc1-elixir before v1.17.0-elixir from v0.10.0-rc1-erlang before v1.17.0-erlang from v0.10.0-rc1-node before v1.17.0-node from v0.10.0-rc1-node-slim before v1.17.0-node-slim from v0.10.0-rc1-elixir-slim before v1.17.0-elixir-slim from v0.10.0-rc1-erlang-slim before v1.17.0-erlang-slim from v0.10.0-rc1-erlang-alpine before v1.17.0-erlang-alpine from v0.10.0-rc1-elixir-alpine before v1.17.0-elixir-alpine from v0.10.0-rc1-node-alpine before v1.17.0-node-alpine from v0.10.0-rc1-scratch before v1.17.0-scratch | v1.17.0-elixir, v1.17.0-erlang, v1.17.0-node, v1.17.0-node-slim, v1.17.0-elixir-slim, v1.17.0-erlang-slim, v1.17.0-erlang-alpine, v1.17.0-elixir-alpine, v1.17.0-node-alpine, v1.17.0-scratch |
| Gleam | Gleam gleam | from 0.10.0-rc1 before 1.17.0 | 1.17.0 |
| Gleam | Gleam gleam-lang/gleam | not stated |
As the CVE record by EEF states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-42795?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.1 | 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 | EEF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-42795 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, June 2, 2026)
- EPSS
- 0.24% probability of exploitation activity in the next 30 days, percentile 16.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-59 Improper Link Resolution Before File Access
Is there a workaround? (from the CVE record)
* Avoid running gleam publish or gleam export hex-tarball on untrusted projects * Review the contents of src/ and priv/ for unexpected symlinks before publishing * Run publishing commands in a restricted or isolated environment (e.g. containers)
Where are the vendor advisories and references?
- Symlink dereference during Hex package export can leak files outside the project root vendor-advisory, related
- EEF CNA record for CVE-2026-42795 related
- OSV record EEF-CVE-2026-42795 related
- Introducing commit c82a2d8 in gleam-lang/gleam related
- Fix commit 6435a55 in gleam-lang/gleam patch
Who found and reported it?
- Abdelrahman Ahmed Aboelkasem (0x2face) (finder)
- Aly (spect3r1) (finder)
- Jonatan Männchen / EEF (analyst)
- Louis Pilfold (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 29, 2026
- Published
- June 2, 2026, 13:41 UTC
- CVE record updated
- November 20, 2026, 05:59 UTC by EEF
- NVD
- Deferred, last modified November 20, 2026, 06:17 UTC
- Last checked
- CVE list November 20, 2026, 06:15 UTC; NVD November 20, 2026, 07:04 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Gleam?
- Oct 12, 2026CVE-2026-103061 Gleam: path traversal (reading or writing files outside the intended folder)
- Jul 29, 2026CVE-2026-59247 Gleam: data authenticity not verified
- Jun 2, 2026CVE-2026-32685 Gleam: path traversal (reading or writing files outside the intended folder)
- Jun 2, 2026CVE-2026-43965 Gleam: path traversal (reading or writing files outside the intended folder)
- Apr 11, 2026CVE-2026-32146 Gleam: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2026-42795
Is CVE-2026-42795 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.24% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Gleam are affected by CVE-2026-42795?
Gleam from v0.10.0-rc1-elixir before v1.17.0-elixir, Gleam from v0.10.0-rc1-erlang before v1.17.0-erlang, Gleam from v0.10.0-rc1-node before v1.17.0-node, Gleam from v0.10.0-rc1-node-slim before v1.17.0-node-slim, Gleam from v0.10.0-rc1-elixir-slim before v1.17.0-elixir-slim, Gleam from v0.10.0-rc1-erlang-slim before v1.17.0-erlang-slim and 5 more, per the CVE record by EEF. The tables above give every range the sources list.
Which version fixes CVE-2026-42795?
v1.17.0-elixir, v1.17.0-erlang, v1.17.0-node, v1.17.0-node-slim, v1.17.0-elixir-slim and v1.17.0-erlang-slim, per the CVE record by EEF. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-42795?
Medium (5.1, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-42795?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.