CVE-2022-31175Cross-site scripting caused by the editor instance destroying process in ckeditor5
- 5.8MediumCVSS base score
- 0.88%Exploitation in 30 daysEPSS · top 40% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | Medium4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.88% · top 40% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@ckeditor/ckeditor5-html-embedGHSA-42wq-rch8-6f6j (opens in a new tab)
- npm@ckeditor/ckeditor5-html-supportGHSA-42wq-rch8-6f6j (opens in a new tab)
- npm@ckeditor/ckeditor5-markdown-gfmGHSA-42wq-rch8-6f6j (opens in a new tab)
References
References4
- https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html (opens in a new tab)x_refsource_MISCx_transferred
- https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html (opens in a new tab)x_refsource_MISCx_transferred
- https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-6474 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-42wq-rch8-6f6j (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-31175)Record last updated .