{"id":"CVE-2026-44581","aliases":["CVE-2026-44581","GHSA-ffhc-5mcf-pf4q"],"related":[],"kind":"vulnerability","state":"published","title":"Next.js: Cross-site scripting in App Router applications using CSP nonces","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nApp 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.\n\n### Fix\n\nWe now reject or ignore malformed nonce values before they are embedded into HTML and apply stricter nonce sanitization so request-derived nonce data cannot break out of the intended attribute context.\n\n### Workarounds\n\nIf you cannot upgrade immediately, strip inbound `Content-Security-Policy` request headers from untrusted traffic.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Next.js es un React framework para construir aplicaciones web full-stack. Desde 13.4.0 hasta antes de 15.5.16 y 16.2.5, las aplicaciones App Router que dependen de nonces CSP pueden ser vulnerables a cross-site scripting almacenado cuando se despliegan detrás de cachés compartidas. En las versiones afectadas, los valores nonce malformados derivados de los encabezados de solicitud podrían reflejarse en el HTML renderizado de manera insegura, permitiendo a un atacante envenenar las respuestas en caché y causar la ejecución de scripts para visitantes posteriores. Esta vulnerabilidad está corregida en 15.5.16 y 16.2.5.","source":"nvd"}],"published":"2026-05-11T15:57:12.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 13.4.0, < 15.5.16","status":"affected"},{"version":">= 16.0.0, < 16.2.5","status":"affected"}],"vendor":"vercel","product":"next.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"13.4.0","status":"affected","fixed":"15.5.16"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.2.5"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"13.4.0","fixed":"15.5.16"},{"status":"affected","introduced":"16.0.0","fixed":"16.2.5"}],"vendor":"vercel","product":"next.js","cpe":"cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-ffhc-5mcf-pf4q","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44581","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.16","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.2.5","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-18T14:12:36.531Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44581","url":"https://www.cve.org/CVERecord?id=CVE-2026-44581","licence":"CVE Terms of Use","modified":"2026-05-18T14:13:33.462Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ffhc-5mcf-pf4q","url":"https://github.com/advisories/GHSA-ffhc-5mcf-pf4q","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:05.447Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44581","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44581","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.618Z","epss":{"score":0.00226,"percentile":0.14208,"date":"2026-12-01T12:00:22.000Z"}}