Read the docs

Cross-site scripting in Twine desktop lets story files run code

Priority HIGH 72CWE-79Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00215 11th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

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

VendorProductAffected versionsFixed inStatusSource
klembottwinejsup to 2.12.0—No fix listedCNA
  • twinejs Vendorklembot Affected up to 2.12.0 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for twinejs.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-05 Threatist record created from CVE-2026-105220
  2. 2026-10-05 Alias added: GHSA-qx8m-f384-xrj3
  3. 2026-10-05 Affected versions changed · Red Hat
  4. 2026-10-05 CVSS score added · Red Hat

References

Sources