Arbitrary File Read Affecting next package, versions <5.1.0


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-NEXT-571938
  • published 10 Jun 2020
  • disclosed 9 Jun 2020
  • credit Ron Masas

Introduced: 9 Jun 2020

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

How to fix?

Upgrade next to version 5.1.0 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Arbitrary File Read. The /path: route fails to properly sanitize input and passes it to a require() call. This allows attackers to execute JavaScript code on the server.

CVSS Scores

version 3.1
Expand this section

Snyk

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