CVE-2026-32685 Details
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 until 1.17.0.
A path traversal vulnerability has been identified in Gleam's management of custom documentation pages. This issue allows arbitrary file reading and writing outside the designated documentation output directory. The vulnerability arises because entries in the 'documentation.pages' section of 'gleam.toml' are integrated into filesystem paths without adequate validation, potentially leading to the exposure of local files or the unauthorized writing of documentation files to unintended locations. The vulnerability affects Gleam versions 1.16.0 prior to 1.17.0.
Users can upgrade to Gleam version 1.17.0 or later, where this vulnerability has been fixed. For those using version 1.16.0, it is recommended to review 'documentation.pages' entries in 'gleam.toml' before generating documentation, and to run documentation generation in a restricted or isolated environment, such as a container.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 2, 2026CISA-ADP
Assessed Jun 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://cna.erlef.org/cves/CVE-2026-32685.html | EEF | AdvisoryBundle |
| https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a | EEF | Source CodeVendor |
| https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430 | EEF | Source CodeVendor |
| https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7 | EEF | AdvisoryExploitRemedyVendor |
| https://osv.dev/vulnerability/EEF-CVE-2026-32685 | EEF | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | EEF |
Affected Products
| Product | Versions |
|---|---|
| Gleam | >= 1.16.0, < 1.17.0 (semver) |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 8, 2026 | CVE Modified | EEF |
| Sep 8, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 2, 2026 | CVE Modified | CISA-ADP |
| Jun 2, 2026 | New CVE Received | EEF |
Volerion