Vulnerabilities in pkg:npm/@ckeditor/ckeditor5-clipboard

PACKAGE
Advisory Identifier: GHSA-x9gp-vjh6-3wv6
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@ckeditor/ckeditor5-clipboard

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@ckeditor/ckeditor5-clipboard. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x9gp-vjh6-3wv6 CVE-2025-58064 LOW CKEditor 5 cross-site scripting (XSS) vulnerability in the clipboard package
GHSA-rgg8-g5x8-wr9v CVE-2024-45613 MODERATE Cross-site scripting (XSS) in the clipboard package

CVE-2025-58064 at a Glance

CVE Identifier CVE-2025-58064
GHSA Identifier GHSA-x9gp-vjh6-3wv6
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ckeditor5
Package Ecosystem npm
Published Date
Last Updated

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.

ckeditor5 fixed: 46.0.3
npm install ckeditor5@46.0.3
@ckeditor/ckeditor5-clipboard fixed: 45.2.2
npm install @ckeditor/ckeditor5-clipboard@45.2.2
ckeditor5 fixed: 45.2.2
npm install ckeditor5@45.2.2
@ckeditor/ckeditor5-clipboard fixed: 46.0.3
npm install @ckeditor/ckeditor5-clipboard@46.0.3
Verify Direct and Transitive Dependencies

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

### Impact A 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. This vulnerability affects **only** installations where the editor configuration meets one of the following criteria: - [HTML embed plugin](https://ckeditor.com/docs/ckeditor5/latest/features/html/html-embed.html) is enabled - Custom plugin introducing editable element which implements view [`RawElement`](https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_rawelement-ViewRawElement.html) is enabled ### Patches The 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. ### For more information Email us at [security@cksource.com](mailto:security@cksource.com) if you have any questions or comments about this advisory.

CVE-2025-58064 Affected Ckeditor5 Versions

4 component(s)
Fixed Versions:
46.0.345.2.2
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?
CVE-2025-58064 is a security vulnerability in Ckeditor5 involving CKEditor 5 cross-site scripting (XSS) vulnerability in the clipboard package under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ckeditor5 versions are affected?
Affected versions include releases prior to 46.0.3, 45.2.2 across affected packages: ckeditor5, @ckeditor/ckeditor5-clipboard.
What version fixes CVE-2025-58064?
Upgrading to 46.0.3, 45.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ckeditor5 affected?
Yes, ckeditor5 is affected in releases prior to 46.0.3, 45.2.2. Upgrade your dependency to 46.0.3, 45.2.2 or later.
Is @ckeditor/ckeditor5-clipboard affected?
Yes, @ckeditor/ckeditor5-clipboard is affected in releases prior to 45.2.2, 46.0.3. Upgrade your dependency to 45.2.2, 46.0.3 or later.
What CWE is associated with CVE-2025-58064?
CVE-2025-58064 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for CVE-2025-58064?
Run the dependency tree command: 'npm ls ckeditor5'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}