Command Injection in node-rules
High severity
GitHub Reviewed
Published
Sep 3, 2020
to the GitHub Advisory Database
•
Updated Oct 6, 2023
Description
Reviewed
Aug 31, 2020
Published to the GitHub Advisory Database
Sep 3, 2020
Last updated
Oct 6, 2023
Versions of
node-rulesprior to 5.0.0 are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to anevalcall when using thefromJSONfunction. This may allow attackers to execute arbitrary code in the system if the rules are user-controlled.Recommendation
Upgrade to version 5.0.0 or later.
References