Skip to main content
EPSS 0.2%top 96%

CVE-2026-105220: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in klembot twinejs

0
High
VulnerabilityCVE-2026-105220cvecve-2026-105220
Published: 10/04/2026 (10/04/2026, 22:31:46 UTC)
Source: CVE Database V5
Vendor/Project: klembot
Product: twinejs

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.

CVSS v4.0

Score 8.5high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

klembot

twinejs

Affected versions
>=0 <=2.12.0
GitHub Actionsmore threats →ai
klembot/twinejs
pkg:github/klembot/twinejs
Affected versions
>=0 <=2.12.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 23:03:19 UTC

Technical Analysis

CVE-2026-105220 is a cross-site scripting vulnerability in klembot's twinejs product, affecting Twine 2 desktop versions up to 2.12.0. The vulnerability exists in the importStories() function, which improperly neutralizes input during web page generation. This allows an attacker to craft a malicious story file that executes arbitrary scripts in the editor window. The exploit can invoke the twineElectron openWithScratchFile IPC bridge to write and open a .bat file, resulting in arbitrary code execution as the user.

Potential Impact

Successful exploitation can lead to arbitrary code execution with the privileges of the user running the Twine editor. This can result in full compromise of the user's environment where the application is executed. The vulnerability requires user interaction (importing a malicious story file) and local access to the application.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid importing untrusted story files into Twine 2 desktop. Monitor official klembot channels for updates and apply any released patches promptly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-10-04T13:04:00.479Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ac2d7d52cdf04f6565d4737

Added to database: 10/04/2026, 22:48:53 UTC

Last enriched: 10/04/2026, 23:03:19 UTC

Last updated: 10/05/2026, 18:56:34 UTC

Views: 24

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses