Home / Gleam / Gleam / CVE-2026-32685
CVE-2026-32685: is it exploited, and which versions of Gleam are affected and fixed?
CVE-2026-32685 is a path traversal (reading or writing files outside the intended folder) 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, 12:38 UTC). Affected: Gleam from v1.16.0-elixir before v1.17.0-elixir, Gleam from v1.16.0-erlang before v1.17.0-erlang, Gleam from v1.16.0-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 (4.6, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 20, 2026, 06:15 UTC and NVD November 20, 2026, 07:04 UTC.
What is CVE-2026-32685?
Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write
Path traversal vulnerability in Gleam's handling of custom documentation pages allows arbitrary file read and file write outside the intended documentation output directory. The documentation.pages entries from gleam.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended project and documentation output directories. The documentation.pages[].path field can be used to write generated documentation files outside the intended build/dev/docs/<package>/ output directory. The documentation.pages[].source field can be used to read files outside the project directory and embed their contents into generated documentation output. An attacker who can convince a victim to run gleam docs build on an untrusted project, or with untrusted gleam.toml content, can cause local files readable by the victim to be included in generated documentation artifacts, and can cause generated documentation files to be written outside the intended docs output directory. This issue affects gleam: from 1.16.0 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 v1.16.0-elixir before v1.17.0-elixir from v1.16.0-erlang before v1.17.0-erlang from v1.16.0-node before v1.17.0-node from v1.16.0-node-slim before v1.17.0-node-slim from v1.16.0-elixir-slim before v1.17.0-elixir-slim from v1.16.0-erlang-slim before v1.17.0-erlang-slim from v1.16.0-erlang-alpine before v1.17.0-erlang-alpine from v1.16.0-elixir-alpine before v1.17.0-elixir-alpine from v1.16.0-node-alpine before v1.17.0-node-alpine from v1.16.0-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 1.16.0 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-32685?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.6 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/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-32685 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.28% probability of exploitation activity in the next 30 days, percentile 22.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Is there a workaround? (from the CVE record)
* Avoid running gleam docs build on untrusted projects * Review documentation.pages entries in gleam.toml before generating documentation * Run documentation generation in a restricted or isolated environment (e.g. containers)
Where are the vendor advisories and references?
- Path traversal and arbitrary file read in `gleam docs build` via `documentation.pages` vendor-advisory, related
- EEF CNA record for CVE-2026-32685 related
- OSV record EEF-CVE-2026-32685 related
- Restrict documentation page path handling patch
- Introducing commit 61ed8de in gleam-lang/gleam related
- Fix commit 8157061 in gleam-lang/gleam patch
Who found and reported it?
- evipepota (finder)
- Jonatan Männchen / EEF (analyst)
- evipepota (remediation developer)
- Louis Pilfold (remediation reviewer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- March 13, 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, 12:38 UTC; EPSS December 2, 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-42795 Gleam: link following (a symlink lets an attacker reach other files)
- 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-32685
Is CVE-2026-32685 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.28% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Gleam are affected by CVE-2026-32685?
Gleam from v1.16.0-elixir before v1.17.0-elixir, Gleam from v1.16.0-erlang before v1.17.0-erlang, Gleam from v1.16.0-node before v1.17.0-node, Gleam from v1.16.0-node-slim before v1.17.0-node-slim, Gleam from v1.16.0-elixir-slim before v1.17.0-elixir-slim, Gleam from v1.16.0-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-32685?
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-32685?
Medium (4.6, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-32685?
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.