Arbitrary Code Injection in reduce-css-calc
Critical severity
GitHub Reviewed
Published
Jun 7, 2018
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Published to the GitHub Advisory Database
Jun 7, 2018
Reviewed
Jun 16, 2020
Last updated
Jan 9, 2023
Affected versions of
reduce-css-calc
pass input directly toeval
. If user input is passed into the calc function, this may result in cross-site scripting on the browser, or remote code execution on the server.Proof of Concept
Recommendation
Update to version 1.2.5 or later.
References