CVE-2021-23445 Cross-site Scripting (XSS)

Low 3.1 Published Updated

An attacker can execute arbitrary scripts via unescaped array inputs in the HTML escape function of the datatables.net library.

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-23445?

CVE-2021-23445 is a low-severity cross-site scripting vulnerability in datatables.net, published on 27 Sep 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

This affects the package datatables.net before 1.11.3. If an array is passed to the HTML escape entities function it would not have its contents escaped.

Weakness: CWE-79

Which versions are affected by CVE-2021-23445?

2 open source packages ship an affected version, including datatables.net. It affects 1 product.

PackageAffectedFixed in
datatables.net npmAll versions1.11.3
datatables.net npmAll versions1.11.3

Products include Datatables Datatables.net.

How do I fix CVE-2021-23445?

Upgrade datatables.net to 1.11.3 or later.

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-23445 being exploited?

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

Sources

Also known as AZL-66567, DEBIAN-CVE-2021-23445, DLA-3529-1, GHSA-h73q-5wmj-q8pj, UBUNTU-CVE-2021-23445.

Is CVE-2021-23445 in your software?

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

Check your SBOMs for free