{"id":"CVE-2026-104847","aliases":["CVE-2026-104847","GHSA-c8x8-7fp4-3x9w"],"related":[],"kind":"vulnerability","state":"published","title":"ProseMirror: XSS vulnerability in prosemirror-view's paste handling","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen a user pastes attacker-provided HTML into a ProseMirror editor component, this can cause attacker-controlled JavaScript code to run in the browser window containing the editor.\n\n### Patches\n\nVersion 1.42.3 adds validation that prevents this attack.\n\n### Workarounds\n\nNo known workarounds.","format":"markdown","source":"ghsa"}],"published":"2026-10-02T16:02:42.475Z","modified":"2026-10-05T22:45:04.552Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.42.3","status":"affected"}],"vendor":"ProseMirror","product":"prosemirror-view","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.42.3"}],"ecosystem":"npm","package":"prosemirror-view","purl":"pkg:npm/prosemirror-view","source":"ghsa"}],"references":[{"url":"https://github.com/ProseMirror/prosemirror-view/security/advisories/GHSA-c8x8-7fp4-3x9w","tags":["web","x-refsource-confirm","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ProseMirror/prosemirror-view/commit/20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ProseMirror/prosemirror-view/commit/2e91a612bbc1248e55b4f6061fc93fe459f977c1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104847","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ProseMirror/prosemirror-view","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-02T16:57:07.727Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-104847","url":"https://www.cve.org/CVERecord?id=CVE-2026-104847","licence":"CVE Terms of Use","modified":"2026-10-02T16:57:44.659Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c8x8-7fp4-3x9w","url":"https://github.com/advisories/GHSA-c8x8-7fp4-3x9w","licence":"CC-BY-4.0","modified":"2026-10-05T22:45:04.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-104847","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104847","licence":"Public domain","modified":"2026-10-02T18:44:11.270Z"}],"updatedAt":"2026-11-25T22:59:41.984Z","epss":{"score":0.003,"percentile":0.24521,"date":"2026-12-01T12:00:22.000Z"}}