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. 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 File Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NEXT-571938
  • published10 Jun 2020
  • disclosed9 Jun 2020
  • creditRon Masas

Introduced: 9 Jun 2020

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