Remote Code Execution (RCE) Affecting next package, versions >=0.9.9 <5.0.1-canary.5


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 Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NEXT-6024002
  • published22 Oct 2023
  • disclosed20 Oct 2023
  • creditmedikoo

Introduced: 20 Oct 2023

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade next to version 5.0.1-canary.5 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) when the /path: route is used. An attacker can execute JavaScript code on the server by passing unsanitaized input to a require() call.

References

CVSS Scores

version 3.1