{"id":"CVE-2026-44581","published":"2026-05-13T17:07:15Z","modified":"2026-05-18T14:13:33Z","title":"Next.js: Cross-site scripting in App Router applications using CSP nonces","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"Next.js is a React framework for building full-stack web applications. From 13.4.0 to before 15.5.16 and 16.2.5, App Router applications that rely on CSP nonces can be vulnerable to stored cross-site scripting when deployed behind shared caches. In affected versions, malformed nonce values derived from request headers could be reflected into rendered HTML in an unsafe way, allowing an attacker to poison cached responses and cause script execution for later visitors. This vulnerability is fixed in 15.5.16 and 16.2.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00226,"percentile":0.13602,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-ffhc-5mcf-pf4q","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":2.72},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":[">= 13.4.0, < 15.5.16",">= 16.0.0, < 16.2.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-18T14:12:36.531340Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=13.4.0, <15.5.16",">=16.0.0, <16.2.5"],"patched":["15.5.16","16.2.5"],"from":["GHSA-ffhc-5mcf-pf4q"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in Next.js affects App Router applications that use CSP nonces, where malformed nonce values derived from request headers can be reflected unsafely into rendered HTML. An attacker could exploit this by poisoning shared-cache responses so that script runs for later visitors, which requires network access, a cache deployment, and a victim who loads the poisoned page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:14Z"},"euvd":{"id":"EUVD-2026-30083","exploited":false,"provenance":"source"}}