{"id":"CVE-2023-2318","aliases":["EUVD-2023-33822","GHSA-jv63-mj7w-v6v9"],"status":"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.","severity":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00538,"percentile":0.45559,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2023-08-19T05:43:56Z","modified":"2026-10-28T02:31:00Z","products":[{"vendor":"marktext","product":"marktext"}],"references":[{"url":"https://github.com/marktext/marktext/issues/3618","tags":["issue-tracking","x_transferred","Exploit","Issue Tracking","report"]},{"url":"https://starlabs.sg/advisories/23/23-2318/","tags":["third-party-advisory","x_transferred","Exploit","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2318","tags":["advisory"]},{"url":"https://starlabs.sg/advisories/23/23-2318"},{"url":"https://github.com/advisories/GHSA-jv63-mj7w-v6v9"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2318.json","tags":["advisory"]},{"url":"https://github.com/marktext/marktext","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-2318","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.","status":"published","published":"2023-08-19T05:43:56.387Z","modified":"2024-10-07T19:56:42.497Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:35:23.645864Z"}],"euvd":[{"id":"EUVD-2023-33822","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.","status":"published","published":"2023-08-19T05:43:56Z","modified":"2024-10-07T19:56:42Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:27:46.330731Z"}],"ghsa":[{"id":"GHSA-jv63-mj7w-v6v9","title":"DOM-based XSS in src/muya/lib/contentState/pasteCtrl.js in MarkText 0.17.1 and before on Windows,...","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.","status":"published","published":"2023-08-19T06:30:25Z","modified":"2024-04-04T07:03:39Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:56:48.229282Z"}],"nvd":[{"id":"CVE-2023-2318","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.","status":"published","published":"2023-08-19T06:15:46.883Z","modified":"2026-06-17T05:52:16.343Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:08:24.487686Z"}],"osv":[{"id":"CVE-2023-2318","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.","status":"published","published":"2023-08-19T05:43:56.387Z","modified":"2026-10-28T02:31:00.626928049Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:30.709518Z"}]}}
