GHSA-42wq-rch8-6f6j · Severity: medium · Ecosystem: npm — CKEditor5 cross-site scripting vulnerability caused by the editor instance destroying process
CKEditor 5 is a JavaScript rich text editor. A cross-site scripting vulnerability has been discovered affecting three optional CKEditor 5's packages in versions prior to 35.0.1. The vulnerability allowed to trigger a JavaScript code after fulfilling special conditions. The affected packages are `@ckeditor/ckeditor5-markdown-gfm`, `@ckeditor/ckeditor5-html-support`, and `@ckeditor/ckeditor5-html-embed`. The specific conditions are 1) Using one of the affected packages. In case of `ckeditor5-html-support` and `ckeditor5-html-embed`, additionally, it was required to use a configuration that allows unsafe markup inside the editor. 2) Destroying the editor instance and 3) Initializing the editor on an element and using an element other than `<textarea>` as a base. The root cause of the issue was a mechanism responsible for updating the source element with the markup coming from the CKEditor 5 data pipeline after destroying the editor. This vulnerability might affect a small percent of integrators that depend on dynamic editor initialization/destroy and use Markdown, General HTML Support or HTML embed features. The problem has been recognized and patched. The fix is available in version 35.0.1. There are no known workarounds for this issue.
Conclusion & alert: CVE-2022-31175 is rated Low Risk (38/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.58%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.84% | 0.58% | -0.26% |
| 2 | 2026-05-18 | 0.75% | 0.84% | +0.09% |
| 3 | 2026-03-26 | — | 0.75% | — |
Full EPSS history (18 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.8 | 3.1 | MEDIUM |
|
1.6 | 3.7 | [email protected] |
| 4.7 | 3.1 | MEDIUM |
|
1.6 | 2.7 | [email protected] |
GHSA-42wq-rch8-6f6j · Severity: medium · Ecosystem: npm — CKEditor5 cross-site scripting vulnerability caused by the editor instance destroying process
| vendor | priority | summary | link |
|---|---|---|---|
ubuntu
|
medium | CVE-2022-31175 medium priority: Ubuntu including 4 source packages (ckeditor, ckeditor3, ldap-account-manager, request-tracker4), 52 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 27, needs-triage 11, not-affected 9, DNE 5. | https://ubuntu.com/security/CVE-2022-31175 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| ckeditor | ckeditor5-html-embed | < 35.0.1 | cpe:2.3:a:ckeditor:ckeditor5-html-embed:*:*:*:*:*:node.js:*:* |
| ckeditor | ckeditor5-html-support | < 35.0.1 | cpe:2.3:a:ckeditor:ckeditor5-html-support:*:*:*:*:*:node.js:*:* |
| ckeditor | ckeditor5-markdown-gfm | < 35.0.1 | cpe:2.3:a:ckeditor:ckeditor5-markdown-gfm:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html | Vendor Advisory |
| https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html | Vendor Advisory |
| https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html | Vendor Advisory |
| https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j | Third Party Advisory |