Skip to content

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

MediumCVSS 4.7 EPSS 0.88%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Ubuntu

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.

Upgrade path

25 packages: 6 fixed, 18 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/ckeditor3(Ubuntu 18.04) = 3.6.6.1+dfsg-1; All versions No fix listed No fix yet
ubuntu/ckeditor3(Ubuntu 20.04) = 3.6.6.1+dfsg-3; = 3.6.6.1+dfsg-4; All versions No fix listed No fix yet
ubuntu/ckeditor3(Ubuntu 22.04) = 3.6.6.1+dfsg-7; All versions No fix listed No fix yet
ubuntu/ckeditor3(Ubuntu 24.04) = 3.6.6.1+dfsg-7; All versions No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 16.04) = 4.9-1; = 5.1-1; = 5.2-1; = 5.2-1ubuntu1 +1 more No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 18.04) = 5.7-1; = 6.1-1; = 6.2-1; All versions No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 20.04) = 6.7-1; All versions No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 22.04) = 7.5-1; = 7.7-1; All versions No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 24.04) = 8.3-1; = 8.5-1; All versions No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 25.10) = 9.0-1; All versions No fix listed No fix yet
ubuntu/ldap-account-manager(Ubuntu 26.04) = 9.0-1; = 9.0-1build1; All versions No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu 16.04) = 4.2.11-2; = 4.2.12-3; = 4.2.12-4; = 4.2.12-5 +1 more No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu 20.04) = 4.4.3-2; = 4.4.3-2+deb10u3build0.20.04.1; All versions No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu 22.04) = 4.4.4+dfsg-2ubuntu1; = 4.4.4+dfsg-2ubuntu1.22.04.1; All versions No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu 24.04) = 4.4.4+dfsg-2ubuntu1; = 4.4.4+dfsg-2ubuntu2; = 4.4.7+dfsg-1; All versions No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu 25.10) = 4.4.7+dfsg-4syncable1; All versions No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu 26.04) = 4.4.7+dfsg-4syncable1; All versions No fix listed No fix yet
ubuntu/request-tracker4(Ubuntu Pro 18.04) = 4.4.1-5; = 4.4.2-1; = 4.4.2-2; = 4.4.2-2ubuntu0.1~esm1 +1 more No fix listed No fix yet
ckeditor @ckeditor/ckeditor5-html-embed < 35.0.1 35.0.1 Fixed
ckeditor @ckeditor/ckeditor5-html-embed(npm) < 35.0.1 35.0.1 Fixed
ckeditor @ckeditor/ckeditor5-html-support < 35.0.1 35.0.1 Fixed
ckeditor @ckeditor/ckeditor5-html-support(npm) < 35.0.1 35.0.1 Fixed
ckeditor @ckeditor/ckeditor5-markdown-gfm < 35.0.1 35.0.1 Fixed
ckeditor @ckeditor/ckeditor5-markdown-gfm(npm) < 35.0.1 35.0.1 Fixed
ckeditor5 = < 35.0.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ckeditor @ckeditor/ckeditor5-markdown-gfm(npm) < 35.0.1 35.0.1
ckeditor @ckeditor/ckeditor5-html-support(npm) < 35.0.1 35.0.1
ckeditor @ckeditor/ckeditor5-html-embed(npm) < 35.0.1 35.0.1
ckeditor5 = < 35.0.1 No fix listed
ubuntu/ckeditor3(Ubuntu:22.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:22.04) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:22.04) All versions No fix listed
ckeditor @ckeditor/ckeditor5-html-embed < 35.0.1 35.0.1
ckeditor @ckeditor/ckeditor5-html-support < 35.0.1 35.0.1
ckeditor @ckeditor/ckeditor5-markdown-gfm < 35.0.1 35.0.1
ubuntu/ckeditor3(Ubuntu:24.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:24.04) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:24.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:26.04) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:26.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:16.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:16.04) = 4.9-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:16.04) = 5.1-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:16.04) = 5.2-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:16.04) = 5.2-1ubuntu1 No fix listed
ubuntu/request-tracker4(Ubuntu:16.04) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:16.04) = 4.2.11-2 No fix listed
ubuntu/request-tracker4(Ubuntu:16.04) = 4.2.12-3 No fix listed
ubuntu/request-tracker4(Ubuntu:16.04) = 4.2.12-4 No fix listed
ubuntu/request-tracker4(Ubuntu:16.04) = 4.2.12-5 No fix listed
Show 37 more
ProductAffected versionsFixed in
ubuntu/ckeditor3(Ubuntu:18.04) All versions No fix listed
ubuntu/ckeditor3(Ubuntu:18.04) = 3.6.6.1+dfsg-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:18.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:18.04) = 5.7-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:18.04) = 6.1-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:18.04) = 6.2-1 No fix listed
ubuntu/request-tracker4(Ubuntu:Pro:18.04) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:Pro:18.04) = 4.4.1-5 No fix listed
ubuntu/request-tracker4(Ubuntu:Pro:18.04) = 4.4.2-1 No fix listed
ubuntu/request-tracker4(Ubuntu:Pro:18.04) = 4.4.2-2 No fix listed
ubuntu/request-tracker4(Ubuntu:Pro:18.04) = 4.4.2-2ubuntu0.1~esm1 No fix listed
ubuntu/ckeditor3(Ubuntu:20.04) All versions No fix listed
ubuntu/ckeditor3(Ubuntu:20.04) = 3.6.6.1+dfsg-3 No fix listed
ubuntu/ckeditor3(Ubuntu:20.04) = 3.6.6.1+dfsg-4 No fix listed
ubuntu/ldap-account-manager(Ubuntu:20.04) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:20.04) = 6.7-1 No fix listed
ubuntu/request-tracker4(Ubuntu:20.04) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:20.04) = 4.4.3-2 No fix listed
ubuntu/request-tracker4(Ubuntu:20.04) = 4.4.3-2+deb10u3build0.20.04.1 No fix listed
ubuntu/ckeditor3(Ubuntu:22.04) = 3.6.6.1+dfsg-7 No fix listed
ubuntu/ldap-account-manager(Ubuntu:22.04) = 7.5-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:22.04) = 7.7-1 No fix listed
ubuntu/request-tracker4(Ubuntu:22.04) = 4.4.4+dfsg-2ubuntu1 No fix listed
ubuntu/request-tracker4(Ubuntu:22.04) = 4.4.4+dfsg-2ubuntu1.22.04.1 No fix listed
ubuntu/ckeditor3(Ubuntu:24.04) = 3.6.6.1+dfsg-7 No fix listed
ubuntu/ldap-account-manager(Ubuntu:24.04) = 8.3-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:24.04) = 8.5-1 No fix listed
ubuntu/request-tracker4(Ubuntu:24.04) = 4.4.4+dfsg-2ubuntu1 No fix listed
ubuntu/request-tracker4(Ubuntu:24.04) = 4.4.4+dfsg-2ubuntu2 No fix listed
ubuntu/request-tracker4(Ubuntu:24.04) = 4.4.7+dfsg-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:25.10) All versions No fix listed
ubuntu/ldap-account-manager(Ubuntu:25.10) = 9.0-1 No fix listed
ubuntu/request-tracker4(Ubuntu:25.10) All versions No fix listed
ubuntu/request-tracker4(Ubuntu:25.10) = 4.4.7+dfsg-4syncable1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:26.04) = 9.0-1 No fix listed
ubuntu/ldap-account-manager(Ubuntu:26.04) = 9.0-1build1 No fix listed
ubuntu/request-tracker4(Ubuntu:26.04) = 4.4.7+dfsg-4syncable1 No fix listed

References