# CVE-2024-46982: Cache Poisoning in next.js - Exploited (CISA KEV): no - Published: 2024-09-17 - CVSS: 7.5 HIGH (v3.1) - EPSS: 59.2% (99th percentile) - CWE: CWE-639 Next.js is a React framework for building full-stack web applications. By 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. To be potentially affected all of the following must apply: 1. Next.js between 13.5.1 and 14.2.9, 2. Using pages router, & 3. Using non-dynamic server-side rendered routes e.g. `pages/dashboard.tsx` not `pages/blog/[slug].tsx`. This 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. There are no official or recommended workarounds for this issue, we recommend that users patch to a safe version. ## Edge WAF coverage (claimed by vendors, not measured) | Vendor | Status | First rule | Days after publication | |---|---|---|---| | Cloudflare | Rule off by default | 2025-02-11 | 147 | | AWS | No public claim | — | — | | Microsoft Azure | No public claim | — | — | | Google Cloud | No public claim | — | — | | Fastly | Before feed history | — | — | | F5 | Rule published | 2025-03-11 | 175 | | Akamai | No public source | — | — | | OWASP CRS | No public claim | — | — | ### Cloudflare - 2025-02-11 · new · rule 042228dffe0a4f1587da0e737e924ca3 · default Disabled > Next.js - Remote Code Execution - CVE:CVE-2024-46982. Previous action: Log. New action: Disabled. This is a New Detection Source: https://developers.cloudflare.com/changelog/post/2025-02-11-waf-release/ ### F5 - 2025-03-11 · new · rule 200012090 > Added: signature 200012090 "Next.js Image Optimizer Denial of Service" (Denial of Service, risk Medium), systems: JavaScript, ReactJS. References: CVE-2024-46982. Source: https://docs.cloud.f5.com/docs-v2/platform/changelogs/security-details-changelog - 2025-03-11 · new · rule 200101894 > Added: signature 200101894 "Next.js Cache Poisoning" (Cross Site Scripting (XSS), risk Low), systems: JavaScript, ReactJS. References: CVE-2024-46982. Source: https://docs.cloud.f5.com/docs-v2/platform/changelogs/security-details-changelog - 2026-10-21 · updated · rule 200101894 > Updated: signature 200101894 "Next.js Cache Poisoning" (Cross Site Scripting (XSS), risk Low), systems: Node.js, ReactJS. References: CVE-2024-46982. Source: https://docs.cloud.f5.com/docs-v2/platform/changelogs/security-details-changelog "No public claim" means no vendor statement names this CVE; "Before feed history" means the CVE is older than the vendor feed. In both cases generic rules may still block it. HTML: https://cve.vigilbase.com/cve/CVE-2024-46982 · JSON: https://cve.vigilbase.com/api/v1/cves/CVE-2024-46982