{"id":"CVE-2026-44580","published":"2026-05-13T17:06:05Z","modified":"2026-05-13T18:28:15Z","title":"Next.js: Cross-site scripting in beforeInteractive scripts with untrusted input","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"Next.js is a React framework for building full-stack web applications. From 13.0.0 to before 15.5.16 and 16.2.5, applications that use beforeInteractive scripts together with untrusted content can be vulnerable to cross-site scripting. In affected versions, serialized script content was not escaped safely before being embedded into the document, which could allow attacker-controlled input to break out of the intended script context and execute arbitrary JavaScript in a visitor's browser. This vulnerability is fixed in 15.5.16 and 16.2.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00223,"percentile":0.1321,"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-gx5p-jg67-6x7h","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":2.64},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":[">= 13.0.0, < 15.5.16",">= 16.0.0, < 16.2.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-13T18:28:00.345033Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=13.0.0, <15.5.16",">=16.0.0, <16.2.5"],"patched":["15.5.16","16.2.5"],"from":["GHSA-gx5p-jg67-6x7h"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting weakness in the beforeInteractive script handling of Vercel's Next.js framework, where serialized script content was not safely escaped before being embedded in the document. An attacker who can supply untrusted content to an application that uses beforeInteractive scripts can break out of the intended script context and run arbitrary JavaScript in a visitor's browser, which requires network access and a victim user to interact with the affected page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:55Z"},"euvd":{"id":"EUVD-2026-30082","exploited":false,"provenance":"source"}}