Cross-site scripting in Twine desktop lets story files run code
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Twine 2 desktop (klembot twinejs) through 2.12.0 contains a cross-site scripting flaw (CWE-79) in importStories() that runs markup from imported story files in the editor window. If a user imports a crafted story file, an attacker can run code as that user.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for twinejs.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Vendor assessments
Timeline
- 2026-10-05 Threatist record created from CVE-2026-105220
- 2026-10-05 Alias added: GHSA-qx8m-f384-xrj3
- 2026-10-05 Affected versions changed · Red Hat
- 2026-10-05 CVSS score added · Red Hat
References
Patch 2
Sources
- CVE-2026-105220 · CVE Program
- CVE-2026-105220 · NVD
- FIRST EPSS
- GHSA-qx8m-f384-xrj3 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-105220 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences