{"id":"CVE-2026-105220","revision":"24a7f5741b5b4c9e9622792e8fbfe1d6","records":[{"revision":"24a7f5741b5b4c9e9622792e8fbfe1d6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-105220","aliases":[],"title":"Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files","description":"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.","state":0,"publishedAt":"2026-10-04T22:31:46.42+00:00","modifiedAt":"2026-10-05T15:06:50.786+00:00","affected":[{"ecosystem":"Vendor product","name":"twinejs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"klembot\",\n                    \"product\": \"twinejs\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThanOrEqual\": \"2.12.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.5,"severity":"HIGH"},{"system":"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,"severity":"HIGH"}],"references":["https://github.com/klembot/twinejs/issues/1706","https://github.com/klembot/twinejs","https://github.com/klembot/twinejs/blob/2.12.0/src/util/import.ts#L134-L136","https://github.com/klembot/twinejs/blob/2.12.0/src/electron/main-process/scratch-file.ts#L57-L63","https://github.com/klembot/twinejs/commit/8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb","https://github.com/klembot/twinejs/commit/3a9af28cabe9684730beb8b578132cad9bb5bc60","https://www.vulncheck.com/advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-files"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-105220","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-105220","identifiers":["CVE-2026-105220"]},"retained":false,"historicalAffected":[]}],"coverage":[]}