CVEfocus › CVE database › CVE-2022-31175

CVE-2022-31175Cross-site scripting caused by the editor instance destroying process in ckeditor5

CVSS 5.8 MediumEPSS 0.8% (higher than 54% of CVEs)Published 2022-08-03Updated 2025-04-23Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
1Fix pending
8Under investigation
13Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ldap-account-managerUnder investigationUBUNTU-CVE-2022-31175
Ubuntu 26.04request-tracker4Under investigationUBUNTU-CVE-2022-31175
Ubuntu 25.10ckeditorNot affected
vulnerable_code_not_present
Ubuntu 25.10ldap-account-managerWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 25.10request-tracker4Will not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 24.04ckeditor3Under investigationUBUNTU-CVE-2022-31175
Ubuntu 24.04ldap-account-managerUnder investigationUBUNTU-CVE-2022-31175
Ubuntu 24.04request-tracker4Under investigationUBUNTU-CVE-2022-31175
Ubuntu 22.04ckeditor3Under investigationUBUNTU-CVE-2022-31175
Ubuntu 22.04ldap-account-managerUnder investigationUBUNTU-CVE-2022-31175
Ubuntu 22.04request-tracker4Under investigationUBUNTU-CVE-2022-31175
Ubuntu 20.04ckeditor3Will not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 20.04ldap-account-managerWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 20.04request-tracker4Will not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 18.04ckeditor3Will not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 18.04ldap-account-managerWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 18.04request-tracker4Fix pendingUBUNTU-CVE-2022-31175
Ubuntu 16.04ckeditorWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
Ubuntu 16.04ldap-account-managerWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 16.04request-tracker4Will not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
UBUNTU-CVE-2022-31175
Ubuntu 14.04ckeditorWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
Ubuntu 14.04ldap-account-managerWill not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
Ubuntu 14.04request-tracker4Will not fix
embedded copies of ckeditor are in ldap-account-manager, rt4, and rt5
npm library@ckeditor/ckeditor5-html-embedFixed35.0.1GHSA-42wq-rch8-6f6j
npm library@ckeditor/ckeditor5-html-supportFixed35.0.1GHSA-42wq-rch8-6f6j
npm library@ckeditor/ckeditor5-markdown-gfmFixed35.0.1GHSA-42wq-rch8-6f6j

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.