CVE-2026-105220 Details
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.
A cross-site scripting vulnerability has been identified in Twine 2 desktop versions through 2.12.0. The issue arises in the 'importStories()' function, which processes imported story files by executing their markup in the editor window. This vulnerability allows attackers to craft story files that, when imported, execute embedded scripts. These scripts can call the 'twineElectron' IPC bridge to write and open files, such as .bat files, executing code on behalf of the user.
Users can update to Twine 2.12.1, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 4, 2026CISA-ADP
Assessed Oct 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/klembot/twinejs/issues/1706 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/klembot/twinejs | [email protected] | Vendor |
| https://github.com/klembot/twinejs/blob/2.12.0/src/electron/main-process/scratch-file.ts#L57-L63 | [email protected] | Source CodeVendor |
| https://github.com/klembot/twinejs/blob/2.12.0/src/util/import.ts#L134-L136 | [email protected] | Source CodeVendor |
| https://github.com/klembot/twinejs/commit/3a9af28cabe9684730beb8b578132cad9bb5bc60 | [email protected] | Source CodeVendor |
| https://github.com/klembot/twinejs/commit/8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb | [email protected] | Source CodeVendor |
| https://github.com/klembot/twinejs/issues/1706 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-files | [email protected] | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Twine | <= 2.12.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 5, 2026 | CVE Modified | CISA-ADP |
| Oct 4, 2026 | New CVE Received | [email protected] |
Volerion