{ "canonical_id": "nextjs--CVE-2024-46982", "system_id": "nextjs", "display_name": "Next.js", "category": "frameworks", "advisory_mode": "core", "title": "Next.js Cache Poisoning", "summary": "### Impact\n\nBy sending a crafted HTTP request, it is possible to poison the cache of a non-dynamic server-side rendered route in the pages router (this does not affect the app router). When this crafted request is sent it could coerce Next.js to cache a route that is meant to not be cached and send a `Cache-Control: s-maxage=1, stale-while-revalidate` header which some upstream CDNs may cache as well. \n\nTo be potentially affected all of the following must apply: \n\n- Next.js between 13.5.1 and 14.2.9\n- Using pages router\n- Using non-dynamic server-side rendered routes e.g. `pages/dashboard.tsx` not `pages/blog/[slug].tsx`\n\nThe below configurations are unaffected:\n\n- Deployments using only app router\n- Deployments on [Vercel](https://vercel.com/) are not affected\n\n\n### Patches\n\nThis vulnerability was resolved in Next.js v13.5.7, v14.2.10, and later. We recommend upgrading regardless of whether you can reproduce the issue or not.\n\n### Workarounds\n\nThere are no official or recommended workarounds for this issue, we recommend that users patch to a safe version.\n\n#### Credits\n\n- Allam Rachid (zhero_)\n- Henry Chen", "published_at": "2024-09-17T21:58:09Z", "updated_at": "2026-02-04T03:45:33.402195Z", "severity": "low", "cvss_score": 3.1, "exploit_status": "unknown", "source_confidence": "official", "official_source_url": "https://github.com/vercel/next.js/security/advisories/GHSA-gp8f-8m3g-qvj9", "secondary_source_urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2024-46982", "https://github.com/vercel/next.js/commit/7ed7f125e07ef0517a331009ed7e32691ba403d3", "https://github.com/vercel/next.js/commit/bd164d53af259c05f1ab434004bcfdd3837d7cda", "https://github.com/vercel/next.js" ], "aliases": [ "CVE-2024-46982", "GHSA-gp8f-8m3g-qvj9" ], "cve_ids": [ "CVE-2024-46982" ], "ghsa_ids": [ "GHSA-gp8f-8m3g-qvj9" ], "osv_ids": [ "GHSA-gp8f-8m3g-qvj9" ], "affected_versions": [ "introduced=13.5.1, fixed<13.5.7", "introduced=14.0.0, fixed<14.2.10" ], "fixed_versions": [ "13.5.7", "14.2.10" ], "package_name": "next", "render_markdown": true, "case_path": "07-framework-security/frameworks/nextjs/cases/nextjs-cve-2024-46982.md", "secure_code_topics": [ "authz-server-side-recheck", "proxy-trust-boundary", "token-cookie-storage" ], "status": "generated", "triage_reasons": [], "verification_status": "verified-real", "verification_mode": "real", "last_verified_at": "2026-03-18T03:56:59+00:00", "last_run_id": "nextjs-nextjs--CVE-2024-46982-20260318035653", "evidence_bundle": "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653", "historical_status": "verified-real", "latest_status": "verified-real", "browser_evidence": { "required": false, "present": true, "refs": [ "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/assets/baseline.png", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/assets/baseline-dom.html", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/logs/baseline-console.json", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/logs/baseline-network.json", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/logs/baseline-page.json", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/assets/proof.png", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/assets/proof-dom.html", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/logs/proof-console.json", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/logs/proof-network.json", "/Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2024-46982-20260318035653/logs/proof-page.json" ] }, "repro_profile_id": "nextjs-proxy-boundary", "artifact_mode": "local-fixture", "blocked_reason": null, "metadata": { "source_names": [ "OSV Next.js" ], "source_kinds": [ "osv-batch" ], "candidate_count": 1 } }