Quick answers
- Is CVE-2026-42795 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-42795 being exploited in the wild.
- How severe is CVE-2026-42795?
- Informational severity, with a CVSS score of 5.1, published 2 June 2026.
- Which products and versions are affected?
- Gleam Gleam 0.10.0-rc1 to 1.17.0.
- Is there a fix for CVE-2026-42795?
- A patch was published on 2026-06-02: Fixed in version 1.17.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-42795 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-42795?
- Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The Gleam compiler's file collection helpers (gleam_files, native_files, and private_files) in 'compiler-cli/src/fs.rs' were configured to follow symbolic links when walking directories like 'src/' and 'priv/'. Because the 'add_path_to_tar' function in 'compiler-cli/src/publish.rs' failed to verify that the resolved target of these symlinks remained within the project root, it would include the contents of the linked files in the resulting Hex package. An attacker with repository write access can plant a symlink pointing to sensitive system files (e.g., ~/.ssh/id_rsa). When a maintainer or CI/CD pipeline runs 'gleam publish', those files are exfiltrated into the public artifact. This issue is fixed in Gleam version 1.17.0.
Affected products
- Gleam Gleam 0.10.0-rc1 to 1.17.0
Timeline
- 2026-06-02: disclosed
- 2026-06-02: advisory
- 2026-06-02: patched: Fixed in version 1.17.0