VDB
Sign up
MEDIUM6.4

GHSA-jrqm-vmqc-gm93

CKEditor 5 has Cross-site Scripting (XSS) in the HTML Support package

Quick fix

GHSA-jrqm-vmqc-gm93 — @ckeditor/ckeditor5-html-support: upgrade to the fixed version with the command below.

npm install @ckeditor/ckeditor5-html-support@47.6.0

Details

### Impact A Cross-Site Scripting (XSS) vulnerability has been discovered in the General HTML Support feature. This vulnerability could be triggered by inserting specially crafted markup, leading to unauthorized JavaScript code execution, if the editor instance used an unsafe General HTML Support configuration.

This vulnerability affects only installations where the editor configuration meets the following criteria:

* [General HTML Support](https://ckeditor.com/docs/ckeditor5/latest/features/html/general-html-support.html) is enabled, * General HTML Support configuration allows inserting unsafe markup (see [Security](https://ckeditor.com/docs/ckeditor5/latest/features/html/general-html-support.html#security) section to learn more).

### Patches The problem has been recognized and patched. The fix will be available in version 47.6.0 (and above).

### Workarounds CKEditor 5 recommends configuring General HTML Support securely to ensure that unsafe content is not accepted. Please refer to the [Security](https://ckeditor.com/docs/ckeditor5/latest/features/html/general-html-support.html#security) section for detailed guidance.

### Credits CKEditor 5 would like to thank: - Emilio Kevin - Jeongwoo Lee, Younsoung Kim, Minseok Kim and Jinyeong Kim from ENKI Whitehat

for responsibly reporting this vulnerability.

### For more information Email us at [security@cksource.com](mailto:security@cksource.com) if you have any questions or comments about this advisory.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@ckeditor/ckeditor5-html-support
Introduced in: 29.0.0Fixed in: 47.6.0
Fixnpm install @ckeditor/ckeditor5-html-support@47.6.0
npm/ckeditor5
Introduced in: 29.0.0Fixed in: 47.6.0
Fixnpm install ckeditor5@47.6.0

References