SecurityContext

CVE-2022-31175: CKEditor 5 - Stored XSS

  • Cve: CVE-2022-31175
  • Name: CKEditor 5 - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary JavaScript in the context of the affected page, leading to potential data theft or session hijacking.
  • Remediation: Update to version 35.0.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.7
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00883
  • Epss percentile: 0.59934
  • Assignee: [email protected]
  • Published at: 2022-08-03T19:15:08Z
  • Age in days: 1574
  • Modified at: 2026-06-17T04:44:57Z
  • Patch available: yes
  • References total: 4
  • Products total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31175
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.htmlVendor Advisory
https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.htmlVendor Advisory
https://ckeditor.com/docs/ckeditor5/latest/features/markdown.htmlVendor Advisory
https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6jThird Party Advisory

Products

Same in every row:

  • Affected: < 35.0.1
  • Platform bound: no
  • Sources: nvd
ProductUrl
ckeditor:ckeditor5-markdown-gfm/v1/products/ckeditor/ckeditor5-markdown-gfm
ckeditor:ckeditor5-html-embed/v1/products/ckeditor/ckeditor5-html-embed
ckeditor:ckeditor5-html-support/v1/products/ckeditor/ckeditor5-html-support

Projects

RepositoryLink kindsIndexedUrl
ckeditor/ckeditor5package, security_advisoryyes/v1/repositories/ckeditor/ckeditor5

Index

  • Repositories: 1
  • Repositories high signal: 1
  • Packages: 2

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts