CVEfocus › CVE database › CVE-2026-44580

CVE-2026-44580Next.js: Cross-site scripting in beforeInteractive scripts with untrusted input

CVSS 6.1 MediumEPSS 0.2% (higher than 13% of CVEs)Published 2026-05-13Updated 2026-05-13Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
29Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 10nodejsNot affected
Red Hat Enterprise Linux 10nodejs-develNot affected
Red Hat Enterprise Linux 10nodejs-docsNot affected
Red Hat Enterprise Linux 10nodejs-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs-libsNot affected
Red Hat Enterprise Linux 10nodejs-npmNot affected
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat Enterprise Linux 10nodejs24Not affected
Red Hat Enterprise Linux 10nodejs24-develNot affected
Red Hat Enterprise Linux 10nodejs24-docsNot affected
Red Hat Enterprise Linux 10nodejs24-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs24-libsNot affected
Red Hat Enterprise Linux 10nodejs24-npmNot affected
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat Enterprise Linux 8nodejs-develNot affected
Red Hat Enterprise Linux 8nodejs-docsNot affected
Red Hat Enterprise Linux 8nodejs-full-i18nNot affected
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonNot affected
Red Hat Enterprise Linux 8nodejs-packagingNot affected
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmNot affected
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
npm librarynextFixed16.2.5GHSA-gx5p-jg67-6x7h

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.