CVE-2026-105220
published high CVSS 4.0 · 8.5Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| klembot | — | twinejs0 through 2.12.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| klembot | twinejs | 0 through 2.12.0 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
7- https://github.com/klembot/twinejs
- https://github.com/klembot/twinejs/blob/2.12.0/src/electron/main-process/scratch-file.ts#L57-L63
- https://github.com/klembot/twinejs/blob/2.12.0/src/util/import.ts#L134-L136
- https://github.com/klembot/twinejs/commit/3a9af28cabe9684730beb8b578132cad9bb5bc60
- https://github.com/klembot/twinejs/commit/8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb
- GitHub Issue #1706 https://github.com/klembot/twinejs/issues/1706
- VulnCheck Advisory: Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files https://www.vulncheck.com/advisories/twine-2-desktop-through-2.12.0-arbitrary-code-execution-via-imported-story-files
Provider assertions
2VulnCheck · cna
Twine 2 Desktop through 2.12.0 Arbitrary Code Execution via Imported Story Files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f2cd0ae17916c0ed4224ecc53a0b8b7d3fc14eb39a865191d7e5ab7b0c71ee01
- Ingested
- 05 Oct 2026, 15:40:17 UTC
- Source record
- Official CVE record