PatchSiren cyber security CVE debrief
CVE-2026-103061 Gleam CVE debrief
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.
- Vendor
- Gleam
- Product
- Unknown
- CVSS
- MEDIUM 5.9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-12
- Original CVE updated
- 2026-10-12
- Advisory published
- 2026-10-12
- Advisory updated
- 2026-10-12
Who should care
Developers using Gleam should verify their project's dependencies and ensure they are using version 1.19.2 or later. They should also review their project's build directory and verify that it is not vulnerable to deletion. Additionally, operators and security teams should be aware of the potential disruption to development and deployment workflows and take necessary precautions to mitigate the impact of this vulnerability. Vulnerability management teams, 3
Why it matters
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. Developers should verify their project's dependencies and ensure they are using version 1.19.2 or later.
- Deletion of directories outside the project's build directory
- Potential disruption to development and deployment workflows
- Need for verification of project dependencies and Gleam version
Technical summary
The vulnerability is caused by Gleam's lack of validation for package application names, which allows a malicious publisher to delete directories outside the project's build directory. The issue affects Gleam versions from 0.32.4 before 1.19.2. This vulnerability can be exploited when a dependency fails to compile, and Gleam deletes the directory with remove_dir_all. The directory name is derived from the app field in the Hex package release's metadata, which was not restricted to a directory name before 2026-10-12.
Defensive priority
Developers using Gleam should verify their project's dependencies and ensure they are using version 1.19.2 or later. They should also review their project's build directory and verify that it is not vulnerable to deletion.
Recommended defensive actions
- Verify project dependencies and ensure version 1.19.2 or later
- Review project build directory for vulnerability
- Update Gleam to version 1.19.2 or later
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The vulnerability is caused by Gleam's lack of validation for package application names, which allows a malicious publisher to delete directories outside the project's build directory. The issue is fixed in Gleam version 1.19.2.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-103061 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-103061
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-103061 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-103061
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Path traversal in Gleam via unvalidated package application names
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/103xxx/CVE-2026-103061.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/gleam-lang/gleam/security/advisories/GHSA-jhcr-c7qm-8589
Supplemental source - related, vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://cna.erlef.org/cves/CVE-2026-103061.html
Supplemental source - related
-
Source reference
Unverified legacy reference
URL: https://osv.dev/vulnerability/EEF-CVE-2026-103061
Supplemental source - related
-
Source reference
Unverified legacy reference
URL: https://github.com/gleam-lang/gleam/commit/d13f27ee80aae7a521d2e9433c4deaf53f892574
Supplemental source - related
-
Source reference
Unverified legacy reference
URL: https://github.com/gleam-lang/gleam/commit/d15c981fac6e533d70ac8ee89a6ef4dbf139adc3
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/gleam-lang/gleam/commit/54bbb2b98af1505b6eed93c45b1936fc76412e5c
Supplemental source - patch
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.