[ CVE-2026-104847 · Published 2 Oct 2026 ]
ProseMirror has a XSS vulnerability in prosemirror-view's paste handling
CVSS 8.5
EPSS <1%Fix available
[ Description ]Official description
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.
[ Fixes ]Fixes and patches
- prosemirror-view 1.42.3Fixed version · GitHub Advisories · npm package prosemirror-view: upgrade to 1.42.3 or later (affected < 1.42.3)
[ Packages ]Affected open-source packages
- prosemirror-view npmAffected < 1.42.3 · fixed in 1.42.3 · GHSA-c8x8-7fp4-3x9w