{"schemaVersion":3,"id":"GHSA-5VJ8-3V2H-H38V","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Remote Code Execution in next\n\nVersions 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.","dates":{"published":"2020-09-04T18:04:08.000Z","modified":"2022-04-28T19:57:43.000Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":null,"severity":"unknown","version":null,"versionLabel":null,"source":null,"vector":null,"computed":false,"selection":"none"},"metrics":[]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"Npm","product":"next","name":"next","label":"next","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/next","purlType":"npm","versions":[{"text":"≥ 0.9.9, < 5.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.9.9, < 5.1.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"nextjs","label":"Next.js","category":"framework"}},"hubHref":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vercel/next.js","label":"github.com/vercel/next.js","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.npmjs.com/advisories/1538","label":"www.npmjs.com/advisories/1538","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-09-04T18:04:08.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2022-04-28T19:57:43.000Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":0,"level":"minimal","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T13:14:12.785Z","stale":false,"partial":false}}