GHSA-m8fw-p3cr-6jqc Cross-Site Scripting in CKEditor4 WordCount Plugin
Cross-site scripting in CKEditor4 WordCount plugin allows attackers to inject scripts when switching to source mode, requiring user interaction and specific configuration.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-m8fw-p3cr-6jqc?
GHSA-m8fw-p3cr-6jqc is a cross-site scripting vulnerability in typo3/cms-rte-ckeditor, published on 25 Jul 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
> ### CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C (4.4)
Problem
The WordCount plugin (npm:ckeditor-wordcount-plugin) for CKEditor4 is vulnerable to cross-site scripting when switching to the source code mode. This plugin is enabled via the Full.yaml configuration present, but is not active in the default configuration.
In default scenarios, exploiting this vulnerability requires a valid backend user account. However, if custom plugins are used on the website frontend, which accept and reflect rich-text content submitted by users, no authentication is required.
Solution
Update to TYPO3 versions 9.5.42 ELTS, 10.4.39 ELTS, 11.5.30 that fix the problem described above.
Credits
Thanks to Sybille Peters who reported this issue, and to TYPO3 core & security team member Oliver Hader who fixed the issue.
References
Which versions are affected by GHSA-m8fw-p3cr-6jqc?
6 open source packages ship an affected version, including typo3/cms-rte-ckeditor.
| Package | Affected | Fixed in |
|---|---|---|
typo3/cms-rte-ckeditor Packagist | From 10.0.0 | 10.4.39 |
typo3/cms-rte-ckeditor Packagist | From 10.0.0 | 10.4.39 |
typo3/cms-rte-ckeditor Packagist | From 11.0.0 | 11.5.30 |
typo3/cms-rte-ckeditor Packagist | From 11.0.0 | 11.5.30 |
typo3/cms-rte-ckeditor Packagist | From 9.5.0 | 9.5.42 |
typo3/cms-rte-ckeditor Packagist | From 9.5.0 | 9.5.42 |
How do I fix GHSA-m8fw-p3cr-6jqc?
Upgrade typo3/cms-rte-ckeditor to a fixed version for your release line: 10.4.39, 11.5.30 or 9.5.42.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is GHSA-m8fw-p3cr-6jqc being exploited?
There is no known exploitation of GHSA-m8fw-p3cr-6jqc in the wild and no public exploit code.