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

exploitDog

github логотип

GHSA-hvq2-wf92-j4f3

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

Описание

express-xss-sanitizer has an unbounded recursion depth

Security Advisory: express-xss-sanitizer

Overview

A vulnerability was discovered in express-xss-sanitizer that allowed unbounded recursion depth during sanitization of nested objects.

Affected Versions

  • All versions prior to 2.0.1

Patched Versions

  • 2.0.1 and later

Description

The sanitize function in lib/sanitize.js performed recursive sanitization without depth limiting, making it vulnerable to stack overflow attacks via specially crafted deeply nested JSON objects.

Impact

An attacker could cause denial-of-service by sending a request with deeply nested structures, potentially crashing the Node.js process.

Solution

Upgrade to version 2.0.1 or later:

npm install express-xss-sanitizer@latest

Пакеты

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

express-xss-sanitizer

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

< 2.0.1

2.0.1

EPSS

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

6.9 Medium

CVSS4

Дефекты

CWE-674

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

CVSS3: 5.3
nvd
5 месяцев назад

The express-xss-sanitizer (aka Express XSS Sanitizer) package through 2.0.0 for Node.js has an unbounded recursion depth in sanitize in lib/sanitize.js for a JSON request body.

EPSS

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

6.9 Medium

CVSS4

Дефекты

CWE-674