Arbitrary Code Execution Affecting require-node package, versions >=1.0.0 <1.3.4 >2.0.0 <2.0.4


0.0
high

Snyk CVSS

    Attack Complexity Low

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-REQUIRENODE-451045
  • published 27 Jun 2019
  • disclosed 20 Jun 2019
  • credit Peisheng Lin(SYM01), Dong Lee

Introduced: 20 Jun 2019

CVE NOT AVAILABLE CWE-94 Open this link in a new tab

How to fix?

Upgrade require-node to version 1.3.4, 2.0.4 or higher.

Overview

require-node is a node middleware let that browser js code can require node js code which is still running at node server.

Affected versions of this package are vulnerable to Arbitrary Code Execution. An attacker is able to execute OS commands in the server through a crafted request body. This is due to improperly sanitising the requests to the require-node endpoint.