Arbitrary File Read Affecting next package, versions <5.1.0
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
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.
References
CVSS Scores
version 3.1