{"id":"CVE-2026-104847","summary":"ProseMirror: XSS vulnerability in prosemirror-view's paste handling","details":"ProseMirror's view component renders and manages the editable browser interface for ProseMirror documents. Prior to 1.42.3, prosemirror-view paste handling accepts attacker-provided HTML whose clipboard slice context contains attributes that are not passed through schema attribute validation. When a user pastes the crafted HTML into an editor, the unvalidated context attributes can construct content that executes attacker-controlled JavaScript in the browser window containing the editor. This issue is fixed in version 1.42.3.","aliases":["GHSA-c8x8-7fp4-3x9w"],"modified":"2026-10-04T02:46:00.431172620Z","published":"2026-10-02T16:02:42.475Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104847.json","unresolved_ranges":[{"extracted_events":[{"fixed":"1.42.3"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104847.json"},{"type":"ADVISORY","url":"https://github.com/ProseMirror/prosemirror-view/security/advisories/GHSA-c8x8-7fp4-3x9w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104847"},{"type":"FIX","url":"https://github.com/ProseMirror/prosemirror-view/commit/20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7"},{"type":"FIX","url":"https://github.com/ProseMirror/prosemirror-view/commit/2e91a612bbc1248e55b4f6061fc93fe459f977c1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/prosemirror/prosemirror-view","events":[{"introduced":"0"},{"fixed":"20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7"},{"fixed":"2e91a612bbc1248e55b4f6061fc93fe459f977c1"}],"database_specific":{"source":"REFERENCES"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104847.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}