{"id":"CVE-2026-59172","aliases":["GHSA-m835-3cm9-rggg","GO-2026-6450"],"title":"Joker linter executed project-local .jokerd/linter.* files during linting","summary":"Joker linter executed project-local .jokerd/linter.* files during linting","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","vendor":"candid82","product":"github.com/candid82/joker","ecosystem":"go","affected":["github.com/candid82/joker < 1.8.2"],"patched":["github.com/candid82/joker 1.8.2"],"published":"2026-09-09","updated":"2026-09-17","sourceUpdated":"2026-09-17T17:41:02.160584664Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-m835-3cm9-rggg","references":[{"url":"https://github.com/candid82/joker/security/advisories/GHSA-m835-3cm9-rggg"},{"url":"https://github.com/candid82/joker"},{"url":"https://github.com/advisories/GHSA-m835-3cm9-rggg"}],"tags":["osv","go","ghsa"],"cwe":["CWE-829"],"ingestedAt":"2026-09-10T00:26:24.579Z","slug":"CVE-2026-59172","body":"## Overview\n\n## Impact\n\nIn Joker versions before 1.8.2, `joker --lint <file>` located a `.jokerd/` directory by walking up from the linted file and executed matching `linter.*` files from that directory before linting. Because these files are executable Joker/Clojure code, linting a file inside an untrusted repository could execute code supplied by that repository.\n\nThis could be triggered by editor integrations or CI jobs that automatically run `joker --lint` on checked-out source code.\n\n## Patches\n\nFixed in Joker v1.8.2. Executable linter customization files are now loaded only from the user's home `.jokerd` directory (`~/.jokerd/linter.cljc`, `~/.jokerd/linter.clj`, `~/.jokerd/linter.cljs`, or `~/.jokerd/linter.joke`). Project-local `.jokerd/linter.*` files are no longer executed.\n\n## Workarounds\n\nUsers who cannot upgrade should avoid running `joker --lint` on untrusted repositories, especially through editor integrations or unattended CI. Removing or disabling project-local `.jokerd/linter.*` files before linting also avoids the code-execution path.\n\n## Credits\n\nReported by Younghun Ko of AhnLab (@koyokr).\n\n## Affected packages\n\n- `github.com/candid82/joker < 1.8.2`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/candid82/joker 1.8.2`","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}