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

exploitDog

github логотип

GHSA-cm22-4g7w-348p

Опубликовано: 10 сент. 2024
Источник: github
Github: Прошло ревью
CVSS4: 2.3
CVSS3: 5

Описание

serve-static vulnerable to template injection that can lead to XSS

Impact

passing untrusted user input - even after sanitizing it - to redirect() may execute untrusted code

Patches

this issue is patched in serve-static 1.16.0

Workarounds

users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist

Details

successful exploitation of this vector requires the following:

  1. The attacker MUST control the input to response.redirect()
  2. express MUST NOT redirect before the template appears
  3. the browser MUST NOT complete redirection before:
  4. the user MUST click on the link in the template

Пакеты

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

serve-static

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

< 1.16.0

1.16.0

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

serve-static

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

>= 2.0.0, < 2.1.0

2.1.0

EPSS

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

2.3 Low

CVSS4

5 Medium

CVSS3

Дефекты

CWE-79

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

CVSS3: 5
ubuntu
больше 1 года назад

serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.

CVSS3: 5
redhat
больше 1 года назад

serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.

CVSS3: 5
nvd
больше 1 года назад

serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.

CVSS3: 4.7
msrc
больше 1 года назад

serve-static affected by template injection that can lead to XSS

CVSS3: 5
debian
больше 1 года назад

serve-static serves static files. serve-static passes untrusted user i ...

EPSS

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

2.3 Low

CVSS4

5 Medium

CVSS3

Дефекты

CWE-79