CVE-2024-56364 Cross-site Scripting vulnerability in SimpleXLSXEx::readThemeColors, SimpleXLSXEx::getColorValue and SimpleXLSX::toHTMLEx

Medium 5.4 Published Updated

Attackers can execute arbitrary JavaScript via the toHTMLEx method in SimpleXLSX, potentially compromising users viewing malicious Excel files.

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

What is CVE-2024-56364?

CVE-2024-56364 is a medium-severity cross-site scripting vulnerability in shuchkin simplexlsx, published on 23 Dec 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

SimpleXLSX is software for parsing and retrieving data from Excel XLSx files. Starting in 1.0.12 and ending in 1.1.13, when calling the extended toHTMLEx method, it is possible to execute arbitrary JavaScript code. This vulnerability is fixed in 1.1.13.

Weakness: CWE-79

Which versions are affected by CVE-2024-56364?

2 open source packages ship an affected version, including shuchkin/simplexlsx.

PackageAffectedFixed in
shuchkin/simplexlsx PackagistFrom 1.0.121.1.13
shuchkin/simplexlsx PackagistFrom 1.0.121.1.13

How do I fix CVE-2024-56364?

Upgrade shuchkin/simplexlsx to 1.1.13 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-2024-56364 being exploited?

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

Sources

Also known as GHSA-r87q-fj25-f8jf.

Is CVE-2024-56364 in your software?

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

Check your SBOMs for free