CKEditor 5 JavaScript execution in style attribute processing
ckeditor5
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ckeditor5 npm |
|
|
| @ckeditor/ckeditor5-engine npm |
|
ckeditor5
| Product | Affected | Fixed in |
|---|---|---|
| ckeditor5 npm |
|
|
| @ckeditor/ckeditor5-engine npm |
|
|
CKEditor 5 is a modern JavaScript rich-text editor with an MVC architecture. From 45.0.0 until 47.7.4 and 48.5.1, the engine uses a vulnerable es-toolkit version whose prototype-pollution behavior can be reached while CKEditor processes incoming style attribute values. Crafted editor content can thereby cause unauthorized JavaScript execution in the browser. This issue is fixed in versions 47.7.4 and 48.5.1.
From the CVE record · GitHub_M
CKEditor 5's engine uses a vulnerable es-toolkit version when processing incoming style attribute values. Crafted editor content can trigger prototype pollution and unauthorized JavaScript execution in the browser. The input does not specify authentication or user-interaction requirements.
Check installations of npm ckeditor5 or @ckeditor/ckeditor5-engine at versions >=45.0.0 <47.7.4 or >=48.0.0 <48.5.1.