{"id":"CVE-2023-2318","summary":"MarkText DOM-Based Cross-site Scripting leading to Remote Code Execution","details":"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.","modified":"2026-08-12T03:51:24.112049655Z","published":"2023-08-19T05:43:56.387Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2318.json","cna_assigner":"STAR_Labs","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2318.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2318"},{"type":"ADVISORY","url":"https://starlabs.sg/advisories/23/23-2318/"},{"type":"REPORT","url":"https://github.com/marktext/marktext/issues/3618"},{"type":"PACKAGE","url":"https://github.com/marktext/marktext"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/marktext/marktext","events":[{"introduced":"0"},{"last_affected":"c8aa33ddcd41184ecac3bd5e67451569b32d8e38"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"0.17.1"}]}}],"versions":["v0.17.1","v0.17.0","v0.16.3","v0.16.2","v0.16.0","v0.16.0-rc.3","v0.16.0-rc.2","v0.16.0-rc.1","v0.15.0","v0.15.0-rc.3","v0.15.0-rc.2","v0.15.0-rc.1","v0.14.0","v0.14.0-rc.1","v0.13.65","v0.13.53","v0.13.50","v0.12.25","v0.12.20","v0.11.42","v0.10.21","v0.9.25","v0.8.12","v0.7.17","v0.6.13","v0.5.2","v0.4.0","v0.3.0","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2318.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}