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

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.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.3 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low