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

exploitDog

github логотип

GHSA-x2rg-q646-7m2v

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

Описание

Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function

Summary

In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app.

Patches

This issue is patched in 2.16.1 and 3.0.0-alpha.5.

PoC

Coming soon...

Impact

  1. Redirect user to another phishing site
  2. Make request to another endpoint of the application based on user's cookie
  3. Steal user's cookie

Пакеты

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

koa

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

< 2.16.1

2.16.1

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

koa

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

>= 3.0.0-alpha.1, < 3.0.0-alpha.5

3.0.0-alpha.5

EPSS

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

5 Medium

CVSS3

Дефекты

CWE-79

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

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

Koa is expressive middleware for Node.js using ES2017 async functions. In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app. This issue is patched in 2.16.1 and 3.0.0-alpha.5.

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

Koa is expressive middleware for Node.js using ES2017 async functions. In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app. This issue is patched in 2.16.1 and 3.0.0-alpha.5.

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

Koa is expressive middleware for Node.js using ES2017 async functions. ...

EPSS

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

5 Medium

CVSS3

Дефекты

CWE-79