{"id":"GHSA-5vj8-3v2h-h38v","summary":"Remote Code Execution in next","details":"Versions of `next` prior to 5.1.0 are vulnerable to Remote Code Execution. 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. Note that prior version 0.9.9 package `next` npm package hosted a different utility (0.4.1 being the latest version of that codebase), and this advisory does not apply to those versions.\n\n## Recommendation\n\nUpgrade to version 5.1.0.","modified":"2022-04-28T19:57:43Z","published":"2020-09-04T18:04:08Z","database_specific":{"cwe_ids":["CWE-20"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-08-31T19:02:46Z","nvd_published_at":null},"references":[{"type":"PACKAGE","url":"https://github.com/vercel/next.js"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1538"}],"affected":[{"package":{"name":"next","ecosystem":"npm","purl":"pkg:npm/next"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.9"},{"fixed":"5.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-5vj8-3v2h-h38v/GHSA-5vj8-3v2h-h38v.json"}}],"schema_version":"1.9.0"}