Cross-Site Scripting in exceljs
Moderate severity
GitHub Reviewed
Published
Sep 11, 2018
to the GitHub Advisory Database
•
Updated Sep 13, 2023
Description
Published to the GitHub Advisory Database
Sep 11, 2018
Reviewed
Jun 16, 2020
Last updated
Sep 13, 2023
Versions of
exceljs
before 1.6.0 are vulnerable to cross-site scripting.This vulnerability is due to
exceljs
not validating data from parsed XLSX file and embedding HTML tags, like<script>
directly into the sheet cells. Because of this it's possible to inject malicious JavaScript code and execute it when data from the sheet is displayed in the browser.Recommendation
Update to version 1.6.0 or later.
References