{"id":"CVE-2023-2318","state":"PUBLISHED","title":"MarkText DOM-Based Cross-site Scripting leading to Remote Code Execution","description":"DOM-based XSS in src/muya/lib/contentState/pasteCtrl.js in MarkText 0.17.1 and before on Windows, Linux and macOS allows arbitrary JavaScript code to run in the context of MarkText main window. This vulnerability can be exploited if a user copies text from a malicious webpage and paste it into MarkText.","publishedAt":"2023-08-19T05:43:56.387Z","updatedAt":"2024-10-07T19:56:42.497Z","severity":{"score":8.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"STAR_Labs"},"assigner":"STAR_Labs","products":["MarkText MarkText"],"affected":[{"vendor":"MarkText","product":"MarkText","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.17.1","versionType":"git"}],"platforms":["Windows","Linux","MacOS"],"programFiles":["https://github.com/marktext/marktext/blob/b75895cdd1a51638f2e67b222b266ff8b9cb9d69/src/muya/lib/contentState/pasteCtrl.js"],"repo":"https://github.com/marktext/marktext"}],"references":["https://github.com/marktext/marktext/issues/3618","https://starlabs.sg/advisories/23/23-2318/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/2xxx/CVE-2023-2318.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-2318","state":"PUBLISHED","datePublished":"2023-08-19T05:43:56.387Z","dateUpdated":"2024-10-07T19:56:42.497Z","assignerShortName":"STAR_Labs","assignerOrgId":"b1571b85-cbc9-431f-830b-0c8155323a69","dateReserved":"2023-04-27T04:51:16.289Z"},"containers":{"cna":{"title":"MarkText DOM-Based Cross-site Scripting leading to Remote Code Execution","descriptions":[{"lang":"en","value":"DOM-based XSS in src/muya/lib/contentState/pasteCtrl.js in MarkText 0.17.1 and before on Windows, Linux and macOS allows arbitrary JavaScript code to run in the context of MarkText main window. This vulnerability can be exploited if a user copies text from a malicious webpage and paste it into MarkText."}],"affected":[{"vendor":"MarkText","product":"MarkText","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.17.1","versionType":"git"}],"platforms":["Windows","Linux","MacOS"],"programFiles":["https://github.com/marktext/marktext/blob/b75895cdd1a51638f2e67b222b266ff8b9cb9d69/src/muya/lib/contentState/pasteCtrl.js"],"repo":"https://github.com/marktext/marktext"}],"references":[{"url":"https://github.com/marktext/marktext/issues/3618","tags":["issue-tracking"]},{"url":"https://starlabs.sg/advisories/23/23-2318/","tags":["third-party-advisory"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"STAR_Labs","orgId":"b1571b85-cbc9-431f-830b-0c8155323a69","dateUpdated":"2023-08-19T05:43:56.387Z"},"credits":[{"lang":"en","type":"finder","user":"00000000-0000-4000-9000-000000000000","value":"Li Jiantao (@CurseRed) of STAR Labs SG Pte. Ltd. (@starlabs_sg)"}],"impacts":[{"capecId":"CAPEC-588","descriptions":[{"lang":"en","value":"CAPEC-588 DOM-Based XSS"}]},{"capecId":"CAPEC-549","descriptions":[{"lang":"en","value":"CAPEC-549 Local Execution of Code"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/marktext/marktext/issues/3618","tags":["issue-tracking","x_transferred"]},{"url":"https://starlabs.sg/advisories/23/23-2318/","tags":["third-party-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T06:19:14.891Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"marktext","product":"marktext","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.17.1","versionType":"git"}],"cpes":["cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-07T19:55:36.566116Z","id":"CVE-2023-2318","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-07T19:56:42.497Z"}}]}}}