Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-gx5p-jg67-6x7h

Опубликовано: 11 мая 2026
Источник: github
Github: Прошло ревью
CVSS3: 6.1

Описание

Next.js has cross-site scripting in beforeInteractive scripts with untrusted input

Impact

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.

Fix

We now HTML-escape serialized beforeInteractive script content before embedding it into the page, preventing attacker-controlled content from breaking out of the inline script boundary.

Workarounds

If you cannot upgrade immediately, do not pass untrusted data into beforeInteractive scripts. If that pattern is unavoidable, sanitize or escape the content before embedding it.

Пакеты

Наименование

next

npm
Затронутые версииВерсия исправления

>= 13.0.0, < 15.5.16

15.5.16

Наименование

next

npm
Затронутые версииВерсия исправления

>= 16.0.0, < 16.2.5

16.2.5

EPSS

Процентиль: 11%
0.00205
Низкий

6.1 Medium

CVSS3

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 6.1
redhat
3 месяца назад

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.

CVSS3: 6.1
nvd
3 месяца назад

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.

EPSS

Процентиль: 11%
0.00205
Низкий

6.1 Medium

CVSS3

Дефекты

CWE-79