{"id":"CVE-2026-59172","aliases":["CVE-2026-59172","GHSA-m835-3cm9-rggg","GO-2026-6450"],"related":[],"kind":"vulnerability","state":"published","title":"Joker linter executed project-local .jokerd/linter.* files during linting","summary":"Joker is a small Clojure interpreter, linter and formatter written in Go. Prior to 1.8.2, `joker --lint <file>` walks upward from the linted file to locate a `.jokerd/` directory and executes matching `linter.*` files before linting. Those files contain executable Joker/Clojure code, so linting a file inside an untrusted repository can execute repository-supplied code with the linter user's privileges. Editor integrations and CI jobs that automatically lint checked-out source can trigger this behavior. The patch stops executing project-local linter customizations and loads executable customization only from the user's home directory. This issue is fixed in version 1.8.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Joker is a small Clojure interpreter, linter and formatter written in Go. Prior to 1.8.2, `joker --lint <file>` walks upward from the linted file to locate a `.jokerd/` directory and executes matching `linter.*` files before linting. Those files contain executable Joker/Clojure code, so linting a file inside an untrusted repository can execute repository-supplied code with the linter user's privileges. Editor integrations and CI jobs that automatically lint checked-out source can trigger this behavior. The patch stops executing project-local linter customizations and loads executable customization only from the user's home directory. This issue is fixed in version 1.8.2.","source":"cvelist"},{"lang":"en","text":"## 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).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Joker linter executed project-local .jokerd/linter.* files during linting in github.com/candid82/joker","format":"markdown","source":"go"}],"published":"2026-09-09T23:48:46.000Z","modified":"2026-10-28T16:17:08.400Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-829"],"affected":[{"ranges":[{"version":"< 1.8.2","status":"affected"}],"vendor":"candid82","product":"joker","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.2"}],"ecosystem":"Go","package":"github.com/candid82/joker","purl":"pkg:golang/github.com/candid82/joker","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.2"}],"ecosystem":"Go","package":"github.com/candid82/joker","purl":"pkg:golang/github.com/candid82/joker","source":"go"}],"references":[{"url":"https://github.com/candid82/joker/security/advisories/GHSA-m835-3cm9-rggg","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/candid82/joker/commit/f207521ef8abc22f30740591c3de5062c1aa628c","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/candid82/joker/tree/v1.8.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/candid82/joker","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-28T14:58:48.475Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59172","url":"https://www.cve.org/CVERecord?id=CVE-2026-59172","licence":"CVE Terms of Use","modified":"2026-10-28T16:07:17.268Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m835-3cm9-rggg","url":"https://github.com/advisories/GHSA-m835-3cm9-rggg","licence":"CC-BY-4.0","modified":"2026-09-17T17:41:02.160Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6450","url":"https://pkg.go.dev/vuln/GO-2026-6450","licence":"CC-BY-4.0","modified":"2026-09-17T17:30:12.886Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59172","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59172","licence":"Public domain","modified":"2026-10-28T16:17:08.400Z"}],"updatedAt":"2026-11-25T22:59:47.616Z","epss":{"score":0.00162,"percentile":0.05601,"date":"2026-12-01T12:00:22.000Z"}}