Vulnerability library
Security checkJanuary 12, 2023

Arbitrary Code Execution in require-node

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmrequire-node

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Update the require-node package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 2.0.0, < 2.0.4 < 1.3.4**
  • Patched version(s): **2.0.4 1.3.4**

References

Could your website be exposed too?

SmartScanner can check your website for Arbitrary Code Execution in require-node and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 12, 2023