{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-2318","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.","descriptionLong":"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.","published":"2023-08-19T05:43:56.387Z","updated":"2026-10-28T02:31:00.626928049Z","reserved":"2023-04-27T04:51:16.289Z","status":"Modified","rejected":false,"assigner":"STAR_Labs","metric":{"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","rating":"high","source":"STAR_Labs"},"metrics":[{"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","rating":"high","source":"STAR_Labs"},{"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","rating":"high","source":"starlabs.sg"},{"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","rating":"critical","source":"NVD"},{"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","rating":"high","source":"OSV"}],"rating":"high","products":["MarkText"],"affectedProducts":[{"vendor":"MarkText","product":"MarkText","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"0.17.1","status":"affected","version":"0","versionType":"git"}],"platforms":["Windows","Linux","MacOS"]}],"packages":[],"cwes":["CWE-79"],"aliases":[],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2318.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2318","tags":["advisory"]},{"url":"https://github.com/marktext/marktext","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00538,"epssPercentile":0.46064,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-2318","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2318","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-2318","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-2318","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}