CVE-2025-58064: Ckeditor5 Cross-Site Scripting Vulnerability
LOWCVE-2025-58064 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ckeditor5 libraries in the npm ecosystem. The issue involves ckeditor 5 cross-site scripting (xss) vulnerability in the clipboard package. Remediation is available by upgrading affected packages to version 46.0.3, 45.2.2.
CVE-2025-58064 at a Glance
How to Fix CVE-2025-58064
To remediate this vulnerability, upgrade all affected Ckeditor5 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 ckeditor5@46.0.3
npm install @ckeditor/ckeditor5-clipboard@45.2.2
npm install ckeditor5@45.2.2
npm install @ckeditor/ckeditor5-clipboard@46.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ckeditor5
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-58064, inspect your project dependencies using npm:
npm ls ckeditor5
Analyze the terminal output to locate any version of Ckeditor5 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 46.0.3), your application is affected.
Note: The npm ls ckeditor5 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 Ckeditor5, 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-2025-58064 Affected Ckeditor5 Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckeditor5
|
npm |
≥ 46.0.0
< 46.0.3
|
46.0.3
|
|
@ckeditor/ckeditor5-clipboard
|
npm |
≥ 44.2.0
< 45.2.2
|
45.2.2
|
|
ckeditor5
|
npm |
≥ 44.2.0
< 45.2.2
|
45.2.2
|
|
@ckeditor/ckeditor5-clipboard
|
npm |
≥ 46.0.0
< 46.0.3
|
46.0.3
|
References
Frequently Asked Questions
What is CVE-2025-58064?
Which Ckeditor5 versions are affected?
What version fixes CVE-2025-58064?
Is ckeditor5 affected?
Is @ckeditor/ckeditor5-clipboard affected?
What CWE is associated with CVE-2025-58064?
How can I check npm dependencies for CVE-2025-58064?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x9gp-vjh6-3wv6",
"modified" : "2025-09-04T13:51:52Z",
"published" : "2025-09-03T18:03:20Z",
"aliases" : [ "CVE-2025-58064" ],
"summary" : "CKEditor 5 cross-site scripting (XSS) vulnerability in the clipboard package",
"details" : "### Impact\nA Cross-Site Scripting (XSS) vulnerability has been discovered in the CKEditor 5 clipboard package. This vulnerability could be triggered by a specific user action, leading to unauthorized JavaScript code execution, if the attacker managed to insert a malicious content into the editor, which might happen with a very specific editor configuration.\n\nThis vulnerability affects **only** installations where the editor configuration meets one of the following criteria:\n- [HTML embed plugin](https://ckeditor.com/docs/ckeditor5/latest/features/html/html-embed.html) is enabled\n- Custom plugin introducing editable element which implements view [`RawElement`](https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_rawelement-ViewRawElement.html) is enabled\n\n### Patches\nThe problem has been recognized and patched. The fix will be available in version 46.0.3 (and above), and explicitly in version 45.2.2.\n\n### For more information\nEmail us at [security@cksource.com](mailto:security@cksource.com) if you have any questions or comments about this advisory.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ckeditor5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "46.0.0"
}, {
"fixed" : "46.0.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@ckeditor/ckeditor5-clipboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "44.2.0"
}, {
"fixed" : "45.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "ckeditor5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "44.2.0"
}, {
"fixed" : "45.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@ckeditor/ckeditor5-clipboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "46.0.0"
}, {
"fixed" : "46.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-x9gp-vjh6-3wv6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58064"
}, {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor5/commit/b210e90c6cf84e662ef6c7daf93a92355a961bf2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ckeditor/ckeditor5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-03T18:03:20Z",
"nvd_published_at" : "2025-09-04T10:42:32Z"
}
}