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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105220.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.12.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "8e8a2bef5b1e20c58b99d22a2a4d8d867fb421cb"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "3a9af28cabe9684730beb8b578132cad9bb5bc60"
}
],
"source": "REFERENCES_COMMIT"
}
]
}