ProseMirror has a XSS vulnerability in prosemirror-view's paste handling

GHSA-c8x8-7fp4-3x9w
HIGH 8.5OSV

At a glance

Source
OSV
Published
Updated
CVE
CVE-2026-104847
CVSS_V4
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
CVE severity
HIGH 8.5 · CVE-2026-104847

Description

### Impact When 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. ### Patches Version 1.42.3 adds validation that prevents this attack. ### Workarounds No known workarounds.

References

Affected packages

PackageVersions
npm · prosemirror-viewintroduced 0, fixed 1.42.3

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database