CVE-2023-2318

Source
https://cve.org/CVERecord?id=CVE-2023-2318
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-2318.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-2318
Published
2023-08-19T05:43:56.387Z
Modified
2026-05-14T03:51:35.145206517Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "cna_assigner": "STAR_Labs",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2318.json",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Git / github.com/marktext/marktext

Affected ranges

Type
GIT
Repo
https://github.com/marktext/marktext
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.17.1"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.10.21
v0.11.42
v0.12.20
v0.12.25
v0.13.50
v0.13.53
v0.13.65
v0.14.0
v0.14.0-rc.1
v0.15.0
v0.15.0-rc.1
v0.15.0-rc.2
v0.15.0-rc.3
v0.16.0
v0.16.0-rc.1
v0.16.0-rc.2
v0.16.0-rc.3
v0.16.2
v0.16.3
v0.17.0
v0.17.1
v0.3.0
v0.4.0
v0.5.2
v0.6.13
v0.7.17
v0.8.12
v0.9.25

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-2318.json"