CVE-2026-104847: Prosemirror view Cross-Site Scripting Vulnerability
HIGHCVE-2026-104847 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Prosemirror view libraries in the npm ecosystem. The issue involves prosemirror has a xss vulnerability in prosemirror-view's paste handling. Remediation is available by upgrading affected packages to version 1.42.3.
CVE-2026-104847 at a Glance
How to Fix CVE-2026-104847
To remediate this vulnerability, upgrade all affected Prosemirror view dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install prosemirror-view@1.42.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls prosemirror-view
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-104847, inspect your project dependencies using npm:
npm ls prosemirror-view
Analyze the terminal output to locate any version of Prosemirror view in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.42.3), your application is affected.
Note: The npm ls prosemirror-view command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Prosemirror view, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-104847 Affected Prosemirror view Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
prosemirror-view
|
npm |
< 1.42.3
|
1.42.3
|
References
Frequently Asked Questions
What is CVE-2026-104847?
Which Prosemirror view versions are affected?
What version fixes CVE-2026-104847?
Is prosemirror-view affected?
What CWE is associated with CVE-2026-104847?
How can I check npm dependencies for CVE-2026-104847?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c8x8-7fp4-3x9w",
"modified" : "2026-10-05T22:36:06Z",
"published" : "2026-10-05T22:36:06Z",
"aliases" : [ "CVE-2026-104847" ],
"summary" : "ProseMirror has a XSS vulnerability in prosemirror-view's paste handling",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "prosemirror-view"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.42.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ProseMirror/prosemirror-view/security/advisories/GHSA-c8x8-7fp4-3x9w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-104847"
}, {
"type" : "WEB",
"url" : "https://github.com/ProseMirror/prosemirror-view/commit/20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7"
}, {
"type" : "WEB",
"url" : "https://github.com/ProseMirror/prosemirror-view/commit/2e91a612bbc1248e55b4f6061fc93fe459f977c1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ProseMirror/prosemirror-view"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-05T22:36:06Z",
"nvd_published_at" : "2026-10-02T16:16:47Z"
}
}