{"id":"CVE-2026-104847","aliases":["GHSA-c8x8-7fp4-3x9w"],"url":"https://o3.security/vulnerability/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.","published":"2026-10-02T16:02:42.475Z","modified":"2026-10-21T02:54:32.493188750Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"prosemirror-view","fixedVersion":"1.42.3"}],"fix":{"url":"https://github.com/ProseMirror/prosemirror-view/commit/20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7","label":"ProseMirror/prosemirror-view@20dc0a9"},"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"},{"type":"PACKAGE","url":"https://github.com/ProseMirror/prosemirror-view"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:54:32.493188750Z"}}