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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-REQUIRENODE-451045
  • published27 Jun 2019
  • disclosed20 Jun 2019
  • creditPeisheng Lin(SYM01), Dong Lee

Introduced: 20 Jun 2019

CVE NOT AVAILABLE CWE-94  (opens 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.

CVSS Scores

version 3.1