CVE-2026-57531

Source
https://cve.org/CVERecord?id=CVE-2026-57531
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57531.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-57531
Published
2026-07-24T19:10:05.984Z
Modified
2026-07-27T04:02:34.996073294Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Milkdown < 7.21.3 DOM XSS via innerHTML Assignment
Details

Milkdown before 7.21.3 contains a DOM cross-site scripting vulnerability in the @milkdown/plugin-emoji package that allows unauthenticated attackers to execute arbitrary JavaScript in the host application's origin by causing a victim to paste attacker-controlled content. The parseDOM.getAttrs handler stores raw innerHTML of pasted span elements with data-type="emoji" without sanitization, and the toMarkdown runner subsequently assigns this unsanitized value directly to a live DOM element's innerHTML, bypassing the DOMPurify sanitization used in the toDOM path, causing payload execution on every markdown serialization cycle.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57531.json",
    "cwe_ids": [
        "CWE-79"
    ],
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/milkdown/milkdown

Affected ranges

Type
GIT
Repo
https://github.com/milkdown/milkdown
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "7.21.3"
        }
    ],
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ]
}

Affected versions

v4.*
v4.1.2
v4.10.0
v4.10.1
v4.10.2
v4.10.3
v4.10.4
v4.10.5
v4.11.0
v4.11.1
v4.11.2
v4.12.0
v4.13.0
v4.13.1
v4.13.2
v4.13.3
v4.14.0
v4.14.1
v4.14.2
v4.2.0
v4.4.0
v4.5.0
v4.5.1
v4.5.2
v4.5.3
v4.6.0
v4.6.2
v4.6.3
v4.6.4
v4.6.5
v4.6.6
v4.6.7
v4.6.9
v4.7.0
v4.7.1
v4.8.2
v4.9.3
v4.9.4
v4.9.5
v4.9.6
v5.*
v5.0.0
v5.0.1
v5.1.0
v5.1.1
v5.1.2
v5.2.0
v5.2.1
v5.3.0
v5.3.1
v5.3.2
v5.3.3
v5.3.4
v5.3.5
v5.4.0
v5.4.1
v5.5.0
v6.*
v6.0.0
v6.0.0-next.0
v6.0.0-next.1
v6.0.1
v6.0.2
v6.1.0
v6.1.1
v6.1.2
v6.1.3
v6.1.4
v6.1.5
v6.2.0
v6.3.0
v6.3.1
v6.3.2
v6.4.0
v6.4.1
v6.5.0
v6.5.2
v6.5.3
v6.5.4
v7.*
v7.0.0
v7.0.0-next.0
v7.0.0-next.1
v7.0.0-next.2
v7.0.0-next.3
v7.0.0-next.4
v7.0.0-next.5
v7.0.0-next.6
v7.0.1
v7.1.0
v7.1.1
v7.1.2-next.0
v7.1.2-next.1
v7.1.2-next.2
v7.1.2-next.3
v7.10.0
v7.10.1
v7.10.2
v7.10.3
v7.10.4
v7.10.5
v7.11.0
v7.11.1
v7.12.0
v7.12.1
v7.13.0
v7.13.1
v7.13.2
v7.14.0
v7.15.0
v7.15.1
v7.15.2
v7.15.3
v7.15.4
v7.15.5
v7.16.0
v7.17.0
v7.17.1
v7.17.2
v7.17.3
v7.18.0
v7.19.0
v7.19.1
v7.19.2
v7.2.0
v7.2.1
v7.2.2
v7.2.3
v7.2.4
v7.20.0
v7.21.0
v7.21.1
v7.21.2
v7.3.0
v7.3.1
v7.3.2
v7.3.3
v7.3.4
v7.3.5
v7.3.6
v7.4.0
v7.5.0
v7.5.5
v7.5.8
v7.5.9
v7.6.0
v7.6.1
v7.6.2
v7.6.3
v7.6.4
v7.7.0
v7.8.0
v7.9.0
v7.9.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57531.json"