CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
0.24% in 30 days
higher than 17% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
GleamGleam gleam-lang/gleamfrom 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
GleamGleam gleamfrom 0.10.0-rc1 before 1.17.01.17.0
GleamGleam gleam-lang/gleamnot 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?

ScoreVersionVectorSource
Medium 5.1CVSS 4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NEEF

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?

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?

Who found and reported it?

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?

Every CVE in Gleam

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.