# CVE-2026-105220: Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-04T22:31:46.420Z
- Modified: 2026-10-06T16:08:43.180Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- klembot twinejs: up to 2.12.0

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/klembot/twinejs/issues/1706> (exploit, issue-tracking)
- <https://github.com/klembot/twinejs> (product)
- <https://github.com/klembot/twinejs/blob/2.12.0/src/util/import.ts#L134-L136> (technical-description)
- <https://github.com/klembot/twinejs/blob/2.12.0/src/electron/main-process/scratch-file.ts#L57-L63> (technical-description)
- <https://github.com/klembot/twinejs/commit/8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb> (patch)
- <https://github.com/klembot/twinejs/commit/3a9af28cabe9684730beb8b578132cad9bb5bc60> (patch)
- <https://www.vulncheck.com/advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-files> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-105220](https://www.cve.org/CVERecord?id=CVE-2026-105220), CVE Terms of Use, modified 2026-10-05
- NVD: [CVE-2026-105220](https://nvd.nist.gov/vuln/detail/CVE-2026-105220), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-105220 · Whole record: https://cve.day/CVE-2026-105220.json · Rebuilt by cve.day 2026-11-25T22:59:42.066Z
