8.5high
ProseMirror: XSS vulnerability in prosemirror-view's paste handling
- Severity
- 8.5high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c8x8-7fp4-3x9w
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ProseMirror prosemirror-view | < 1.42.3 | CVE List |
| prosemirror-view (npm) | before 1.42.3 | GitHub Advisory Database |
All scores
| GitHub_M | 8.5high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-104847 changed 2026-10-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c8x8-7fp4-3x9w changed 2026-10-05 | CC-BY-4.0 |
| NVD | CVE-2026-104847 changed 2026-10-02 | Public domain |