MediumGHSA-qw96-mm2g-c8m7CVE-2018-18282

Next.js has cross site scripting (XSS) vulnerability via the 404 or 500 /_error page

Published 15 Oct 2018 · Updated 8 Nov 2023

Affected package

nextnpm
Affected
>=7.0.0 <7.0.2
Fixed in
7.0.2
Update to the fixed version for your release line, for example:npm install next@7.0.2

Details

Next.js 7.0.0 and 7.0.1 has XSS via the 404 or 500 /_error page.

Is GHSA-qw96-mm2g-c8m7 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected next, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.