{ "canonical_id": "nextjs--GHSA-5vj8-3v2h-h38v", "system_id": "nextjs", "display_name": "Next.js", "category": "frameworks", "advisory_mode": "core", "title": "Remote Code Execution in next", "summary": "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.", "published_at": "2020-09-04T18:04:08Z", "updated_at": "2022-04-28T19:57:43Z", "severity": "unknown", "cvss_score": null, "exploit_status": "unknown", "source_confidence": "official", "official_source_url": "https://github.com/vercel/next.js", "secondary_source_urls": [ "https://www.npmjs.com/advisories/1538" ], "aliases": [ "GHSA-5vj8-3v2h-h38v" ], "cve_ids": [], "ghsa_ids": [ "GHSA-5vj8-3v2h-h38v" ], "osv_ids": [ "GHSA-5vj8-3v2h-h38v" ], "affected_versions": [ "introduced=0.9.9, fixed<5.1.0" ], "fixed_versions": [ "5.1.0" ], "package_name": "next", "render_markdown": true, "case_path": "07-framework-security/frameworks/nextjs/cases/nextjs-ghsa-5vj8-3v2h-h38v.md", "secure_code_topics": [ "authz-server-side-recheck", "proxy-trust-boundary", "token-cookie-storage", "dependency-upgrade-policy" ], "status": "generated", "triage_reasons": [], "verification_status": "triage-manual", "verification_mode": "synthetic", "last_verified_at": null, "last_run_id": null, "evidence_bundle": null, "historical_status": null, "latest_status": null, "browser_evidence": { "required": false, "present": false, "refs": [] }, "repro_profile_id": "nextjs-proxy-boundary", "artifact_mode": "official-source", "blocked_reason": null, "metadata": { "source_names": [ "OSV Next.js" ], "source_kinds": [ "osv-batch" ], "candidate_count": 1 } }