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

Medium 6.3 Published Updated

Attackers can execute arbitrary scripts via unsanitized graph legend fields in the ApexCharts library, 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-23327?

CVE-2021-23327 is a medium-severity cross-site scripting vulnerability in apexcharts, published on 9 Feb 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

The package apexcharts before 3.24.0 are vulnerable to Cross-site Scripting (XSS) via lack of sanitization of graph legend fields.

Weakness: CWE-79

Which versions are affected by CVE-2021-23327?

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

PackageAffectedFixed in
apexcharts npmAll versions3.24.0
apexcharts npmAll versions3.24.0

Products include Fusioncharts Apexcharts.

How do I fix CVE-2021-23327?

Upgrade apexcharts to 3.24.0 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-23327 being exploited?

There is no known exploitation of CVE-2021-23327 in the wild and no public exploit code.

Sources

Also known as GHSA-w46j-8hm6-h8mm.

Is CVE-2021-23327 in your software?

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

Check your SBOMs for free