# GHSA-C8X8-7FP4-3X9W: ProseMirror has a XSS vulnerability in prosemirror-view's paste handling

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-10-05
- Modified: 2026-10-05

## Tracked as

- [CVE-2026-104847](https://cve.now/CVE-2026-104847.md): ProseMirror: XSS vulnerability in prosemirror-view's paste handling

## Affected versions

- prosemirror-view (npm): fixed in 1.42.3

## 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

- https://github.com/ProseMirror/prosemirror-view/security/advisories/GHSA-c8x8-7fp4-3x9w
- https://nvd.nist.gov/vuln/detail/CVE-2026-104847
- https://github.com/ProseMirror/prosemirror-view/commit/20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7
- https://github.com/ProseMirror/prosemirror-view/commit/2e91a612bbc1248e55b4f6061fc93fe459f977c1
- https://github.com/ProseMirror/prosemirror-view

Page: https://cve.now/GHSA-C8X8-7FP4-3X9W

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
