{"id":"UBUNTU-CVE-2022-31175","details":"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 `\u003ctextarea\u003e` 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.","modified":"2026-05-20T16:08:06.544953475Z","published":"2022-08-03T19:15:00Z","upstream":["CVE-2022-31175"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31175"},{"type":"REPORT","url":"https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j"},{"type":"REPORT","url":"https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html"},{"type":"REPORT","url":"https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html"},{"type":"REPORT","url":"https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31175"}],"affected":[{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9-1","5.1-1","5.2-1","5.2-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.2-1ubuntu1","binary_name":"ldap-account-manager"},{"binary_version":"5.2-1ubuntu1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.11-2","4.2.12-3","4.2.12-4","4.2.12-5"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.2.12-5"},{"binary_name":"rt4-apache2","binary_version":"4.2.12-5"},{"binary_name":"rt4-clients","binary_version":"4.2.12-5"},{"binary_version":"4.2.12-5","binary_name":"rt4-db-mysql"},{"binary_version":"4.2.12-5","binary_name":"rt4-db-postgresql"},{"binary_name":"rt4-db-sqlite","binary_version":"4.2.12-5"},{"binary_name":"rt4-doc-html","binary_version":"4.2.12-5"},{"binary_name":"rt4-fcgi","binary_version":"4.2.12-5"},{"binary_name":"rt4-standalone","binary_version":"4.2.12-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ckeditor3","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ckeditor3?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.6.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.6.6.1+dfsg-1","binary_name":"ckeditor3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7-1","6.1-1","6.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.2-1","binary_name":"ldap-account-manager"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"6.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.1-5","4.4.2-1","4.4.2-2","4.4.2-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_name":"rt4-apache2","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_name":"rt4-clients","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_name":"rt4-db-mysql","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_version":"4.4.2-2ubuntu0.1~esm1","binary_name":"rt4-db-postgresql"},{"binary_name":"rt4-db-sqlite","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_name":"rt4-doc-html","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_name":"rt4-fcgi","binary_version":"4.4.2-2ubuntu0.1~esm1"},{"binary_name":"rt4-standalone","binary_version":"4.4.2-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ckeditor3","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ckeditor3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.6.1+dfsg-3","3.6.6.1+dfsg-4"],"ecosystem_specific":{"binaries":[{"binary_version":"3.6.6.1+dfsg-4","binary_name":"ckeditor3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"6.7-1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"6.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.3-2","4.4.3-2+deb10u3build0.20.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.4.3-2+deb10u3build0.20.04.1"},{"binary_version":"4.4.3-2+deb10u3build0.20.04.1","binary_name":"rt4-apache2"},{"binary_name":"rt4-clients","binary_version":"4.4.3-2+deb10u3build0.20.04.1"},{"binary_name":"rt4-db-mysql","binary_version":"4.4.3-2+deb10u3build0.20.04.1"},{"binary_name":"rt4-db-postgresql","binary_version":"4.4.3-2+deb10u3build0.20.04.1"},{"binary_name":"rt4-db-sqlite","binary_version":"4.4.3-2+deb10u3build0.20.04.1"},{"binary_version":"4.4.3-2+deb10u3build0.20.04.1","binary_name":"rt4-doc-html"},{"binary_name":"rt4-fcgi","binary_version":"4.4.3-2+deb10u3build0.20.04.1"},{"binary_version":"4.4.3-2+deb10u3build0.20.04.1","binary_name":"rt4-standalone"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ckeditor3","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ckeditor3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.6.1+dfsg-7"],"ecosystem_specific":{"binaries":[{"binary_name":"ckeditor3","binary_version":"3.6.6.1+dfsg-7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.5-1","7.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"7.7-1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"7.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.4+dfsg-2ubuntu1","4.4.4+dfsg-2ubuntu1.22.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_name":"rt4-apache2","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_name":"rt4-clients","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_name":"rt4-db-mysql","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1","binary_name":"rt4-db-postgresql"},{"binary_name":"rt4-db-sqlite","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_name":"rt4-doc-html","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_name":"rt4-fcgi","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"},{"binary_name":"rt4-standalone","binary_version":"4.4.4+dfsg-2ubuntu1.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ckeditor3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ckeditor3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.6.1+dfsg-7"],"ecosystem_specific":{"binaries":[{"binary_version":"3.6.6.1+dfsg-7","binary_name":"ckeditor3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.3-1","8.5-1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.5-1","binary_name":"ldap-account-manager"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"8.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.4+dfsg-2ubuntu1","4.4.4+dfsg-2ubuntu2","4.4.7+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.4.7+dfsg-1"},{"binary_version":"4.4.7+dfsg-1","binary_name":"rt4-apache2"},{"binary_version":"4.4.7+dfsg-1","binary_name":"rt4-clients"},{"binary_name":"rt4-db-mysql","binary_version":"4.4.7+dfsg-1"},{"binary_version":"4.4.7+dfsg-1","binary_name":"rt4-db-postgresql"},{"binary_name":"rt4-db-sqlite","binary_version":"4.4.7+dfsg-1"},{"binary_name":"rt4-doc-html","binary_version":"4.4.7+dfsg-1"},{"binary_name":"rt4-fcgi","binary_version":"4.4.7+dfsg-1"},{"binary_version":"4.4.7+dfsg-1","binary_name":"rt4-standalone"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"9.0-1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"9.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.7+dfsg-4syncable1"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-apache2","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-clients","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-db-mysql","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-db-postgresql","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-db-sqlite","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-doc-html","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_version":"4.4.7+dfsg-4syncable1","binary_name":"rt4-fcgi"},{"binary_name":"rt4-standalone","binary_version":"4.4.7+dfsg-4syncable1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0-1","9.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"9.0-1build1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"9.0-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}},{"package":{"name":"request-tracker4","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/request-tracker4?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.7+dfsg-4syncable1"],"ecosystem_specific":{"binaries":[{"binary_name":"request-tracker4","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_version":"4.4.7+dfsg-4syncable1","binary_name":"rt4-apache2"},{"binary_name":"rt4-clients","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-db-mysql","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-db-postgresql","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-db-sqlite","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_name":"rt4-doc-html","binary_version":"4.4.7+dfsg-4syncable1"},{"binary_version":"4.4.7+dfsg-4syncable1","binary_name":"rt4-fcgi"},{"binary_version":"4.4.7+dfsg-4syncable1","binary_name":"rt4-standalone"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31175.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}