# CVE-2026-105220 — klembot twinejs

> As of 2026-10-04, CVE-2026-105220 is a HIGH-severity vulnerability in klembot twinejs, CVSS v3.1 7.8. No Threadlinqs-tracked threat campaign has been attributed to CVE-2026-105220 as of 2026-10-04; the identifier is re-checked against the Threadlinqs threat corpus on every daily ingest.

**Last updated:** 2026-10-04

## What is CVE-2026-105220?

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.

The record classifies CVE-2026-105220 under weakness class [CWE-79](https://intel.threadlinqs.com/cwe/CWE-79). Its CVSS v3 base vector states that the flaw requires local access to the host, needs no prior authentication, needs a user to take an action first, and has high impact on confidentiality, integrity, availability. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 1 day ago.

## Severity and exploitation probability

- **CVSS v3.1 base score:** 7.8 — HIGH (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **CVSS v4.0 base score:** 8.5 (`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`)
- **CISA KEV:** Not listed in the CISA Known Exploited Vulnerabilities catalog
- **Threadlinqs priority:** 3.9/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- **Published:** 2026-10-04

## Is CVE-2026-105220 being exploited?

It currently carries a trending score of 30 in the Threadlinqs vulnerability feed.

## Affected products and versions

- **klembot**: twinejs

## How to fix CVE-2026-105220

No vendor patch reference has been recorded for CVE-2026-105220 in the tracked sources. Follow the references below for a fix, and treat the products listed above as exposed until the vendor states otherwise.

## Threat activity tracking CVE-2026-105220

No threat campaign in the Threadlinqs corpus currently references CVE-2026-105220, in its CVE list or as an indicator. The linkage is recomputed from the live corpus on every daily ingest, so this section fills in as soon as a tracked campaign cites the identifier.

## Sources

Enriched from CVE.org, NVD, GitHub Security Advisories. Last verified by Threadlinqs on 2026-10-05. This product uses the NVD API but is not endorsed or certified by the NVD.

**Vendor advisory and patch**

- [github.com — patch](https://github.com/klembot/twinejs/commit/8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb)
- [github.com — patch (3a9af28cabe9684730beb8b578132cad9bb5bc60)](https://github.com/klembot/twinejs/commit/3a9af28cabe9684730beb8b578132cad9bb5bc60)

**Technical analysis**

- [github.com — technical description](https://github.com/klembot/twinejs/blob/2.12.0/src/util/import.ts#L134-L136)
- [github.com — technical description (scratch file)](https://github.com/klembot/twinejs/blob/2.12.0/src/electron/main-process/scratch-file.ts#L57-L63)

**Third-party advisory**

- [vulncheck.com — third party advisory](https://www.vulncheck.com/advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-files)

**Issue tracking and product pages**

- [github.com — issue tracking](https://github.com/klembot/twinejs/issues/1706)
- [github.com — product](https://github.com/klembot/twinejs)

Canonical: https://intel.threadlinqs.com/cve/CVE-2026-105220
Full detection coverage and IOCs for threats exploiting CVE-2026-105220 via the Threadlinqs MCP server (Purple tier): https://intel.threadlinqs.com/mcp
