{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-42795","published":"2026-06-02T14:16:53.883000Z","last_modified":"2026-11-20T06:17:27.530000Z","status":"Deferred","cvss":{"version":"4.0","score":5.1,"severity":"MEDIUM","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","primary":false},"auth":true,"cwes":["CWE-59"],"cpes":[],"cpes_truncated":false,"vendors":["gleam"],"products":["gleam/gleam"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":31,"links":{"html_es":"/es/cve/CVE-2026-42795/","html_en":"/en/cve/CVE-2026-42795/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-42795","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-42795"},"untrusted":{"vendor_name":"Gleam","product_name":"Gleam","desc_en":"Symlink following vulnerability in Gleam's Hex package export allows files outside the project root to be embedded in the generated package tarball.\n\nThe file collection helpers (gleam_files, native_files, private_files) in compiler-cli/src/fs.rs use follow_links(true) when walking publishable directories such as src/ and priv/. The collected paths are added to the package archive via add_path_to_tar in compiler-cli/src/publish.rs without verifying that the resolved target remains within the project root. A symlink placed under a publishable directory will cause gleam export hex-tarball or gleam publish to embed the contents of the symlink target into the generated Hex package.\n\nAn attacker with write access to the project repository can place a symlink in src/ or priv/ pointing to an arbitrary file. When a maintainer or CI pipeline runs gleam publish or gleam export hex-tarball, local files readable by the publisher (such as secrets, tokens, or SSH keys) are silently embedded into the published package artifact.\n\nThis issue affects gleam: from 0.10.0-rc1 before 1.17.0.","affected":[{"untrusted_vendor":"Gleam","untrusted_product":"Gleam","versions":[]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-42795.html","tags":[]},{"url":"https://github.com/gleam-lang/gleam/commit/6435a5528b9ae0449e2f32be579641ec485f6866","tags":[]},{"url":"https://github.com/gleam-lang/gleam/commit/c82a2d83bd0c06cafdc196820deb3f89a9b3ff7c","tags":[]},{"url":"https://github.com/gleam-lang/gleam/security/advisories/GHSA-qhh5-fg4c-8gqc","tags":[]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42795","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:21143-1","url":"https://www.suse.com/support/update/","published":"2026-06-23T09:40:09+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for gleam"}},{"source":"suse","id":"openSUSE-SU-2026:10953-1","url":"https://www.suse.com/support/update/","published":"2026-06-04T00:00:00+00:00","severity":"medium","exploited":false,"untrusted":{"title":"gleam-1.17.0-1.1 on GA media"}}]}