CVE-2018-16459 Cross-Site Scripting in exceljs

Medium 6.1 Published Updated

An attacker can inject malicious scripts into Excel cell values that execute when the worksheet is viewed in a browser.

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-2018-16459?

CVE-2018-16459 is a medium-severity cross-site scripting vulnerability in https://github.com/guyonroche exceljs, published on 6 Sep 2018. 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

An unescaped payload in exceljs <v1.6 allows a possible XSS via cell value when worksheet is displayed in browser.

Weakness: CWE-79

Which versions are affected by CVE-2018-16459?

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

PackageAffectedFixed in
exceljs npmAll versions1.6.0
exceljs npmAll versions1.6.0

Products include Exceljs Project Exceljs.

How do I fix CVE-2018-16459?

Upgrade exceljs to 1.6.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-2018-16459 being exploited?

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

Sources

Also known as GHSA-2j2j-8rrv-264g.

Is CVE-2018-16459 in your software?

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

Check your SBOMs for free