A path traversal vulnerability in Gleam allows a malicious package publisher to delete directories outside the project's build directory when a developer builds a project. This issue affects Gleam versions from 0.32.4 before 1.19.2. The vulnerability arises from Gleam's lack of validation for package application names, which are used as directory names without proper sanitization. Developers should verify their project's dependencies and ensure they are using version 1.19.2 or later. The issue can lead to deletion of directories outside the project's build directory, potentially disrupting development and deployment workflows.
CVE-2026-32146 is an improper path validation issue in Gleam’s handling of git dependencies. During dependency download, names from gleam.toml and manifest.toml could be incorporated into filesystem paths without sufficient confinement to the intended dependency directory. That allowed attacker-controlled relative or absolute paths to affect locations outside the expected directory, with the risk of directory deletion, overwrite, and data loss. The issue affects Gleam 1.9.0-rc1 through 1.15.4.