CVE-2026-32685Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Gleam: affected: v1.16.0-elixir to before v1.17.0-elixir, v1.16.0-erlang to before v1.17.0-erlang, v1.16.0-node to before v1.17.0-node, v1.16.0-node-slim to before v1.17.0-node-slim, v1.16.0-elixir-slim to before v1.17.0-elixir-slim, v1.16.0-erlang-slim to before v1.17.0-erlang-slim; fixed in
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 - Gleam: affected: 1.16.0 to before 1.17.0; fixed in
1.17.0 - Gleam: affected: 61ed8deb6572b5591ad17d6302c1a38607522f16 to before 81570611906b6b0039c948037094d09a68700f3a; fixed in
81570611906b6b0039c948037094d09a68700f3a
Workaround: * 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)
Vendor advisories:
- https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7 (vendor-advisory)
- https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430 (patch)
- https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a (patch)
References
- https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
- https://cna.erlef.org/cves/CVE-2026-32685.html
- https://osv.dev/vulnerability/EEF-CVE-2026-32685
- https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430
- https://github.com/gleam-lang/gleam/commit/61ed8deb6572b5591ad17d6302c1a38607522f16
- https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.