CKEditor: Cross-site scripting (XSS) in the engine package
Impact
A Cross-Site Scripting (XSS) vulnerability has been discovered in the CKEditor 5 engine. This vulnerability is caused by a prototype pollution issue in the es-toolkit library used in the CKEditor 5 codebase. This vulnerability could lead to unauthorized JavaScript code execution when the editor processes incoming style attribute values.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 45.0.0 before 47.7.4Semantic versions | 47.7.4 |
| From 48.0.0 before 48.5.1Semantic versions | 48.5.1 |
Version evidence: OSV · GHSA-rh54-vffm-5fvp
View original version evidence (0 explicit versions)
| Affected range | Recorded fix |
|---|---|
| From 45.0.0 before 47.7.4Semantic versions | 47.7.4 |
| From 48.0.0 before 48.5.1Semantic versions | 48.5.1 |
Version evidence: OSV · GHSA-rh54-vffm-5fvp
View original version evidence (0 explicit versions)
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
ckeditor · ckeditor5
| Version / range | Source status |
|---|---|
| >= 45.0.0, < 47.7.4 | affected |
| >= 48.0.0, < 48.5.1 | affected |
Original source description
Impact
A Cross-Site Scripting (XSS) vulnerability has been discovered in the CKEditor 5 engine. This vulnerability is caused by a prototype pollution issue in the es-toolkit library used in the CKEditor 5 codebase. This vulnerability could lead to unauthorized JavaScript code execution when the editor processes incoming style attribute values.
The underlying issue has been patched by the library maintainers, and the fix has been incorporated into CKEditor 5.
Patches
The problem has been recognized and patched. The fix will be available in version 48.5.1 (and above) and 47.7.4 (LTS).
For more information
Email us at security@cksource.com if you have any questions or comments about this advisory.
References
- Security advisory github.com/ckeditor/ckeditor5/security/advisories/GHSA-rh54-vffm-5fvp
- Patch github.com/ckeditor/ckeditor5/commit/4d9c5bb34f63cd956d15ccafbe584e14280c86a0
- Patch github.com/ckeditor/ckeditor5/commit/a750e38635db6a18c5b11599c09f4fd702850423
- Release notes github.com/ckeditor/ckeditor5/releases/tag/v47.7.4
- Release notes github.com/ckeditor/ckeditor5/releases/tag/v48.5.1
- Source reference github.com/ckeditor/ckeditor5