Arbitrary File Read Affecting next package, versions <5.1.0


0.0
high

Snyk CVSS

    Attack Complexity Low
    Integrity High

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.