Path Traversal Vulnerability in Gleam Documentation Handling
CVE-2026-32685
What is CVE-2026-32685?
A path traversal vulnerability exists in Gleam's custom documentation pages management, enabling unauthorized file read and write operations. The issue arises from insufficient validation in the incorporation of documentation.pages entries from gleam.toml into filesystem paths. Attackers can exploit this flaw by persuading users to run the 'gleam docs build' command on untrusted projects or with untrusted gleam.toml content, potentially leading to the inclusion of sensitive local files in generated documentation. This can allow harmful files to be written outside the designated output directory, posing significant security risks.
Affected Version(s)
Gleam 1.16.0 < 1.17.0
Gleam 1.16.0 < 1.17.0
Gleam 61ed8deb6572b5591ad17d6302c1a38607522f16 < 81570611906b6b0039c948037094d09a68700f3a
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
