CVE-2024-56364: Cross-site Scripting Vulnerability in SimpleXLSX Package

shuchkin/simplexlsx Updated 02 Oct 2025

Summary

23/12/2024
Yes i
Moderate
6.8

CVE-2024-56364: Impact When calling the extended toHTMLEx method, it is possible to execute arbitrary JavaScript code. Affects shuchkin/simplexlsx versions >= 1.0.12, < 1.1.13. Fixed in 1.1.13. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

SimpleXLSX is a PHP library that allows developers to read and convert Excel files into HTML format. It is widely used for its simplicity and efficiency in handling spreadsheet data. However, a critical vulnerability has been identified in its extended toHTMLEx method, which can lead to security risks if not addressed promptly.

Vulnerability Detail

The vulnerability arises from the SimpleXLSXEx::readThemeColors, SimpleXLSXEx::getColorValue, and SimpleXLSX::toHTMLEx methods, which do not properly sanitize user input. This oversight allows an attacker to inject arbitrary JavaScript code when the toHTMLEx method is called, potentially leading to Cross-site Scripting (XSS) attacks. The ramifications include unauthorized actions performed on behalf of users, data theft, and compromised user sessions.

How To Fix

Minimum fixed version

1.1.13

This is the first release that contains the fix.

composer require shuchkin/simplexlsx:1.1.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, avoid using the data publication feature via the toHTMLEx method until the package is updated. This can help mitigate the risk of XSS attacks while you work on applying the patch.

Conclusion

The CVE-2024-56364 vulnerability in the SimpleXLSX package poses a significant risk due to its potential for XSS attacks. It is crucial for developers to update to version 1.1.13 or later to mitigate this risk. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for shuchkin/simplexlsx →

Share this vulnerability

FAQ

CVE-2024-56364 is a vulnerability in the SimpleXLSX package that allows for Cross-site Scripting (XSS) attacks due to improper input sanitization.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your composer.lock file.

The vulnerability can lead to unauthorized actions, data theft, and compromised user sessions due to the execution of arbitrary JavaScript code.

Yes, the vulnerability has been patched in version 1.1.13 of the SimpleXLSX package. It is recommended to update to this version.

If you cannot update the package right away, avoid using the toHTMLEx method to prevent potential XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for shuchkin/simplexlsx.

How To Fix

Minimum fixed version

1.1.13

This is the first release that contains the fix.

composer require shuchkin/simplexlsx:1.1.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback