{"id":"CVE-2024-46982","aliases":["GHSA-gp8f-8m3g-qvj9"],"url":"https://o3.security/vulnerability/CVE-2024-46982","summary":"Cache Poisoning in next.js","details":"### 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":"2024-09-17T21:55:04.312Z","modified":"2026-08-12T03:51:35.361483133Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"next","fixedVersion":"13.5.7"},{"ecosystem":"npm","name":"next","fixedVersion":"14.2.10"}],"fix":{"url":"https://github.com/vercel/next.js/commit/7ed7f125e07ef0517a331009ed7e32691ba403d3","label":"vercel/next.js@7ed7f12"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46982.json"},{"type":"ADVISORY","url":"https://github.com/vercel/next.js/security/advisories/GHSA-gp8f-8m3g-qvj9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46982"},{"type":"FIX","url":"https://github.com/vercel/next.js/commit/7ed7f125e07ef0517a331009ed7e32691ba403d3"},{"type":"FIX","url":"https://github.com/vercel/next.js/commit/bd164d53af259c05f1ab434004bcfdd3837d7cda"},{"type":"PACKAGE","url":"https://github.com/vercel/next.js"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:35.361483133Z"}}