CVE-2026-32685
published medium CVSS 4.0 · 4.6Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gleam | — | gleam-lang/gleamGleam · v1.16.0-elixir to < v1.17.0-elixir · v1.16.0-erlang to < v1.17.0-erlang · v1.16.0-node to < v1.17.0-node · v1.16.0-node-slim to < v1.17.0-node-slim · v1.16.0-elixir-slim to < v1.17.0-elixir-slim · v1.16.0-erlang-slim to < v1.17.0-erlang-slim · v1.16.0-erlang-alpine to < v1.17.0-erlang-alpine · v1.16.0-elixir-alpine to < v1.17.0-elixir-alpine · v1.16.0-node-alpine to < v1.17.0-node-alpine · v1.16.0-scratch to < v1.17.0-scratch · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleamGleam · 1.16.0 to < 1.17.0 · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleam-lang/gleamGleam · 61ed8deb6572b5591ad17d6302c1a38607522f16 to < 81570611906b6b0039c948037094d09a68700f3a · Other versions: unaffected | Affected | Not stated | EEF |
| SUSE / openSUSE | openSUSE-Leap-16.0 | gleamaarch64 | Advisory build | 1.17.0-bp160.1.1 | OPENSUSE-SU-2026:21143-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | gleamx86_64 | Advisory build | 1.17.0-bp160.1.1 | OPENSUSE-SU-2026:21143-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamaarch64 | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamppc64le | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleams390x | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamx86_64 | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.6 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gleam | Gleam | v1.16.0-elixir to < v1.17.0-elixir (affected · other)v1.16.0-erlang to < v1.17.0-erlang (affected · other)v1.16.0-node to < v1.17.0-node (affected · other)v1.16.0-node-slim to < v1.17.0-node-slim (affected · other)v1.16.0-elixir-slim to < v1.17.0-elixir-slim (affected · other)v1.16.0-erlang-slim to < v1.17.0-erlang-slim (affected · other)v1.16.0-erlang-alpine to < v1.17.0-erlang-alpine (affected · other)v1.16.0-elixir-alpine to < v1.17.0-elixir-alpine (affected · other)v1.16.0-node-alpine to < v1.17.0-node-alpine (affected · other)v1.16.0-scratch to < v1.17.0-scratch (affected · other)Default: unaffected | EEF · cna |
| Gleam | Gleam | 1.16.0 to < 1.17.0 (affected · semver)Default: unaffected | EEF · cna |
| Gleam | Gleam | 61ed8deb6572b5591ad17d6302c1a38607522f16 to < 81570611906b6b0039c948037094d09a68700f3a (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
6- EEF CNA record for CVE-2026-32685 https://cna.erlef.org/cves/CVE-2026-32685.html
- Introducing commit 61ed8de in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/61ed8deb6572b5591ad17d6302c1a38607522f16
- Fix commit 8157061 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a
- Restrict documentation page path handling https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430
- Path traversal and arbitrary file read in `gleam docs build` via `documentation.pages` https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
- OSV record EEF-CVE-2026-32685 https://osv.dev/vulnerability/EEF-CVE-2026-32685
Provider assertions
2EEF · cna
Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c8edc33a7bee4a1c42d7b50322c586737db4f5b052655c92eb28990762747b87
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record