HIGH 7.8
CVE-2026-105220
Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files
Preliminary: affected artifacts
were inferred from the fix commits of the source repository
and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.webjars.npm » github-com-klembot-twinejspreliminary | <= 2.12.0< 8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb< 3a9af28cabe9684730beb8b578132cad9bb5bc60 | 8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb, 3a9af28cabe9684730beb8b578132cad9bb5bc60 |
Blast radius
1affected artifacts
1affected versions
0dependent artifacts (est.)
0dependent versions
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | CVE record CVE-2026-105220 | github.com |
| Advisory | NVD CVE-2026-105220 | nvd.nist.gov |
| Advisory | advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-file ... | vulncheck.com |
| Fix | klembot/twinejs commit 3a9af28 | github.com |
| Fix | klembot/twinejs commit 8e8a2be | github.com |
| Report | klembot/twinejs issue #1706 | github.com |
| Article | klembot/twinejs scratch-file.ts | github.com |
| Article | klembot/twinejs import.ts | github.com |
| Package | klembot/twinejs | github.com |
