Skip to content

Command Injection in node-rules

High severity GitHub Reviewed Published Sep 3, 2020 to the GitHub Advisory Database • Updated Oct 6, 2023

Package

npm node-rules (npm)

Affected versions

< 5.0.0

Patched versions

5.0.0

Description

Versions of node-rules prior to 5.0.0 are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to an eval call when using the fromJSON function. 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

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 3, 2020
Last updated Oct 6, 2023

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-8whr-v3gm-w8h9

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.