5.8
MEDIUM
CVE-2022-31175
CKEditor 5 Cross-Site Scripting (XSS) Vulnerability
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.

INFO

Published Date :

Aug. 3, 2022, 7:15 p.m.

Last Modified :

Aug. 9, 2022, 5:28 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.7

Exploitability Score :

1.6
Affected Products

The following products are affected by CVE-2022-31175 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Ckeditor ckeditor5
2 Ckeditor ckeditor5-markdown-gfm
3 Ckeditor ckeditor5-html-embed
4 Ckeditor ckeditor5-html-support
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-31175.

URL Resource
https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html Vendor Advisory
https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html Vendor Advisory
https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html Vendor Advisory
https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-31175 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-31175 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Aug. 09, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html No Types Assigned https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html Vendor Advisory
    Changed Reference Type https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html No Types Assigned https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html Vendor Advisory
    Changed Reference Type https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html No Types Assigned https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html Vendor Advisory
    Changed Reference Type https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j No Types Assigned https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:ckeditor:ckeditor5-html-embed:*:*:*:*:*:node.js:*:* versions up to (excluding) 35.0.1 *cpe:2.3:a:ckeditor:ckeditor5-html-support:*:*:*:*:*:node.js:*:* versions up to (excluding) 35.0.1 *cpe:2.3:a:ckeditor:ckeditor5-markdown-gfm:*:*:*:*:*:node.js:*:* versions up to (excluding) 35.0.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-31175 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-31175 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.09 }} -0.00%

score

0.37652

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability