Skip to content

Arbitrary Code Execution in require-node

Critical severity GitHub Reviewed Published Sep 3, 2020 to the GitHub Advisory Database • Updated Jan 12, 2023

Package

npm require-node (npm)

Affected versions

< 1.3.4
>= 2.0.0, < 2.0.4

Patched versions

1.3.4
2.0.4

Description

Versions of require-node prior to 1.3.4 for 1.x and 2.0.4 for 2.x are vulnerable to Arbitrary Code Execution. The package fails to sanitize requests to the require-node endpoint, allowing attackers to execute arbitrary code in the server through the injection of OS commands in the request body.

Recommendation

  • If you are using 1.x, upgrade to version 1.3.4 or later.
  • If you are using 2.x, upgrade to version 2.0.4 or later.

References

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

Severity

Critical

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-8j6j-4h2c-c65p

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.