{"id":"CVE-2026-105220","published":"2026-10-04T22:31:46Z","modified":"2026-10-05T15:06:50Z","title":"Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files","vendor":"klembot","product":"twinejs","tier":"tail","description":{"text":"Twine 2 desktop through 2.12.0 contains a cross-site scripting vulnerability in importStories() that executes markup from imported story files in the editor window. Attackers can craft a story file whose script calls the twineElectron openWithScratchFile IPC bridge to write and open a .bat file, executing code as the user.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.06572,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/klembot/twinejs/issues/1706","tags":["issue-tracking"]},{"url":"https://github.com/klembot/twinejs","tags":["product"]},{"url":"https://github.com/klembot/twinejs/blob/2.12.0/src/util/import.ts#L134-L136","tags":["technical-description"]},{"url":"https://github.com/klembot/twinejs/blob/2.12.0/src/electron/main-process/scratch-file.ts#L57-L63","tags":["technical-description"]},{"url":"https://github.com/klembot/twinejs/commit/8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb","tags":["patch"]},{"url":"https://github.com/klembot/twinejs/commit/3a9af28cabe9684730beb8b578132cad9bb5bc60","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-files","tags":["third-party-advisory"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.31},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"klembot","affectedVersions":[{"vendor":"klembot","product":"twinejs","versions":["<= 2.12.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-05T15:04:38.321934Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-92133","exploited":false,"provenance":"source"}}