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

Published Oct 4, 2026
·
Updated

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.

Affected Software

1 affected component
Twine Twine 2 Desktop<=2.12.0

Event History

Oct 4, 2026
CVE Published
via MITRE·10:31 PM
Data Sourced
via MITRE·10:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What must an attacker do to exploit this issue?

The attacker must provide a crafted story file and persuade a user to import it into the Twine 2 desktop editor. The malicious markup then executes in the editor window and can use the exposed IPC bridge to write and open a .bat file.

2

What level of access does exploitation give an attacker?

Successful exploitation can execute code as the user running Twine 2 Desktop. The listed impact includes high confidentiality, integrity, and availability impact.

3

Are users affected merely by opening Twine, or is interaction required?

User interaction is required: the crafted story file must be imported. The vulnerability is triggered through the importStories() handling of imported story content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203