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)

ArtifactAffected versionsFixed 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.