CVE-2021-33829 ckeditor4 vulnerable to cross-site scripting

Medium 6.1 Published Updated

Remote attackers can inject executable JavaScript via crafted comments in CKEditor's HTML Data Processor, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-33829?

CVE-2021-33829 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 9 Jun 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A cross-site scripting (XSS) vulnerability in the HTML Data Processor in CKEditor 4 4.14.0 through 4.16.x before 4.16.1 allows remote attackers to inject executable JavaScript code through a crafted comment because --!> is mishandled.

Weakness: CWE-79

Which versions are affected by CVE-2021-33829?

20 open source packages ship an affected version, including drupal/core, drupal and drupal/drupal. It affects 4 products.

PackageAffectedFixed in
drupal/core PackagistFrom 7.0.07.80
drupal/core PackagistFrom 7.0.07.80
drupal/core PackagistFrom 8.0.08.9.16, 9.0.14, 9.1.9
drupal/core PackagistFrom 8.0.08.9.16
drupal/core PackagistFrom 8.0.08.9.16
drupal/core PackagistFrom 9.0.09.0.14
14 more packages
drupal/core PackagistFrom 9.0.09.0.14
drupal/core PackagistFrom 9.1.09.1.9
drupal/core PackagistFrom 9.1.09.1.9
drupal BitnamiFrom 8.9.08.9.16, 9.0.14, 9.1.9
drupal/drupal PackagistFrom 7.0.07.80
drupal/drupal PackagistFrom 7.0.07.80
drupal/drupal PackagistFrom 8.0.08.9.16
drupal/drupal PackagistFrom 8.0.08.9.16
drupal/drupal PackagistFrom 9.0.09.0.14
drupal/drupal PackagistFrom 9.0.09.0.14
drupal/drupal PackagistFrom 9.1.09.1.9
drupal/drupal PackagistFrom 9.1.09.1.9
ckeditor4 npmFrom 4.14.04.16.1
ckeditor4 npmFrom 4.14.04.16.1

Products include Ckeditor Ckeditor, Debian Debian Linux, Drupal Drupal, Fedoraproject Fedora.

How do I fix CVE-2021-33829?

Upgrade drupal/core to a fixed version for your release line: 7.80, 8.9.16, 9.0.14 or 9.1.9.

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 CVE-2021-33829 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-33829 exists.

Public exploit code: 1 Nuclei template.

All Debian Debian Linux vulnerabilities

Sources

Also known as BIT-drupal-2021-33829, DEBIAN-CVE-2021-33829, DRUPAL-CORE-2021-003, GHSA-rgx6-rjj4-c388, UBUNTU-CVE-2021-33829.

Is CVE-2021-33829 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free