Next.js: Cross-site scripting in App Router applications using CSP nonces
Title source: cnaExploitation Summary
EIP tracks 2 public exploits for CVE-2026-44581. PoCs published by dwisiswant0, XZ1r0.
AI-analyzed exploit summary This repository contains functional proof-of-concept exploits for multiple Next.js v16.2.4 vulnerabilities, including SSRF, XSS, and cache poisoning. The PoCs are well-documented with technical details, vulnerable code excerpts, and runnable exploit scripts.
Description
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.
Exploits (2)
This repository contains functional proof-of-concept exploits for multiple Next.js v16.2.4 vulnerabilities, including SSRF, XSS, and cache poisoning. The PoCs are well-documented with technical details, vulnerable code excerpts, and runnable exploit scripts.
This repository contains a functional exploit for CVE-2026-44581, a reflected XSS vulnerability in Next.js <16.2.5. The exploit demonstrates how a malformed CSP nonce can break out of the attribute context, allowing arbitrary JavaScript execution.
References (1)
Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N