CVE-2022-31175
Cross-site scripting caused by the editor instance destroying process in ckeditor5
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.8
Cross-site scripting caused by the editor instance destroying process in ckeditor5
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.
- Record
CVE-2022-31175- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2022-6474
5.8
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.
- Record
EUVD-2022-6474- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-42wq-rch8-6f6j
5.8
CKEditor5 cross-site scripting vulnerability caused by the editor instance destroying process
Affected packages
@ckeditor/ckeditor5-markdown-gfm @ckeditor/ckeditor5-html-support @ckeditor/ckeditor5-html-embed
Impact
A cross-site scripting vulnerability has been discovered affecting three optional CKEditor 5's packages. The vulnerability allowed to trigger a JavaScript code after fulfilling special conditions:
a) 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,
b) Initializing the editor on an element and using an element other than <textarea> as a base,
c) Destroying the editor instance.
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.
Patches
The problem has been recognized and patched. The fix will be available in version 35.0.1.
For more information
Email us at [email protected] if you have any questions or comments about this advisory.
- Record
GHSA-42wq-rch8-6f6j- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
5.8
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.
- Record
CVE-2022-31175- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
5.8
Cross-site scripting caused by the editor instance destroying process in ckeditor5
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.
- Record
CVE-2022-31175- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-42wq-rch8-6f6j
5.8
CKEditor5 cross-site scripting vulnerability caused by the editor instance destroying process
Affected packages
@ckeditor/ckeditor5-markdown-gfm @ckeditor/ckeditor5-html-support @ckeditor/ckeditor5-html-embed
Impact
A cross-site scripting vulnerability has been discovered affecting three optional CKEditor 5's packages. The vulnerability allowed to trigger a JavaScript code after fulfilling special conditions:
a) 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,
b) Initializing the editor on an element and using an element other than <textarea> as a base,
c) Destroying the editor instance.
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.
Patches
The problem has been recognized and patched. The fix will be available in version 35.0.1.
For more information
Email us at [email protected] if you have any questions or comments about this advisory.
- Record
GHSA-42wq-rch8-6f6j- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-31175
5.8
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.
- Record
UBUNTU-CVE-2022-31175- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@ckeditor/ckeditor5-markdown-gfmnpm |
before 35.0.1 | 35.0.1 |
@ckeditor/ckeditor5-html-supportnpm |
before 35.0.1 | 35.0.1 |
@ckeditor/ckeditor5-html-embednpm |
before 35.0.1 | 35.0.1 |
ldap-account-managerUbuntu:16.04:LTS |
All versions, plus listed versions 4.9-15.1-15.2-15.2-1ubuntu1 |
None known |
request-tracker4Ubuntu:16.04:LTS |
All versions, plus listed versions 4.2.11-24.2.12-34.2.12-44.2.12-5 |
None known |
ckeditor3Ubuntu:18.04:LTS |
All versions, plus listed versions 3.6.6.1+dfsg-1 |
None known |
ldap-account-managerUbuntu:18.04:LTS |
All versions, plus listed versions 5.7-16.1-16.2-1 |
None known |
request-tracker4Ubuntu:Pro:18.04:LTS |
All versions, plus listed versions 4.4.1-54.4.2-14.4.2-24.4.2-2ubuntu0.1~esm1 |
None known |
ckeditor3Ubuntu:20.04:LTS |
All versions, plus listed versions 3.6.6.1+dfsg-33.6.6.1+dfsg-4 |
None known |
ldap-account-managerUbuntu:20.04:LTS |
All versions, plus listed versions 6.7-1 |
None known |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
request-tracker4Ubuntu:20.04:LTS |
All versions, plus listed versions 4.4.3-24.4.3-2+deb10u3build0.20.04.1 |
None known |
ckeditor3Ubuntu:22.04:LTS |
All versions, plus listed versions 3.6.6.1+dfsg-7 |
None known |
ldap-account-managerUbuntu:22.04:LTS |
All versions, plus listed versions 7.5-17.7-1 |
None known |
request-tracker4Ubuntu:22.04:LTS |
All versions, plus listed versions 4.4.4+dfsg-2ubuntu14.4.4+dfsg-2ubuntu1.22.04.1 |
None known |
ckeditor3Ubuntu:24.04:LTS |
All versions, plus listed versions 3.6.6.1+dfsg-7 |
None known |
ldap-account-managerUbuntu:24.04:LTS |
All versions, plus listed versions 8.3-18.5-1 |
None known |
request-tracker4Ubuntu:24.04:LTS |
All versions, plus listed versions 4.4.4+dfsg-2ubuntu14.4.4+dfsg-2ubuntu24.4.7+dfsg-1 |
None known |
ldap-account-managerUbuntu:25.10 |
All versions, plus listed versions 9.0-1 |
None known |
request-tracker4Ubuntu:25.10 |
All versions, plus listed versions 4.4.7+dfsg-4syncable1 |
None known |
ldap-account-managerUbuntu:26.04:LTS |
All versions, plus listed versions 9.0-19.0-1build1 |
None known |
request-tracker4Ubuntu:26.04:LTS |
All versions, plus listed versions 4.4.7+dfsg-4syncable1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-31175 is a medium vulnerability (CVSS 5.8) in Ckeditor Ckeditor5, published August 3, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.88%, the 59th percentile. Fixed in @ckeditor/ckeditor5-markdown-gfm 35.0.1.
References
github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j
ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html
ckeditor.com/docs/ckeditor5/latest/features/html-embed.html
ckeditor.com/docs/ckeditor5/latest/features/markdown.html
nvd.nist.gov/vuln/detail/CVE-2022-31175
github.com/advisories/GHSA-42wq-rch8-6f6j