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

exploitDog

github логотип

GHSA-2xv9-ghh9-xc69

Опубликовано: 27 мая 2025
Источник: github
Github: Прошло ревью
CVSS4: 6.8

Описание

radashi Allows Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Impact

This is a prototype pollution vulnerability. It impacts users of the set function within the Radashi library. If an attacker can control parts of the path argument to the set function, they could potentially modify the prototype of all objects in the JavaScript runtime, leading to unexpected behavior, denial of service, or even remote code execution in some specific scenarios.

Patches

The vulnerability has been patched in commit 8147abc8cfc3cfe9b9a17cd389076a5d97235a66. Users should upgrade to a version of Radashi that includes this commit. The fix utilizes a new helper function, isDangerousKey, to prevent the use of __proto__, prototype, or constructor as keys in the path, throwing an error if any are encountered. This check is bypassed for objects with a null prototype.

Workarounds

Users on older versions can mitigate this vulnerability by sanitizing the path argument provided to the set function to ensure that no part of the path string is __proto__, prototype, or constructor. For example, by checking each segment of the path before passing it to the set function.

References

Пакеты

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

radashi

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

< 12.5.1

12.5.1

EPSS

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

6.8 Medium

CVSS4

Дефекты

CWE-1321

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

redhat
23 дня назад

Radashi is a TypeScript utility toolkit. Prior to version 12.5.1, the set function within the Radashi library is vulnerable to prototype pollution. If an attacker can control parts of the path argument to the set function, they could potentially modify the prototype of all objects in the JavaScript runtime, leading to unexpected behavior, denial of service, or even remote code execution in some specific scenarios. This issue has been patched in version 12.5.1. A workaround for this issue involves sanitizing the path argument provided to the set function to ensure that no part of the path string is __proto__, prototype, or constructor.

nvd
23 дня назад

Radashi is a TypeScript utility toolkit. Prior to version 12.5.1, the set function within the Radashi library is vulnerable to prototype pollution. If an attacker can control parts of the path argument to the set function, they could potentially modify the prototype of all objects in the JavaScript runtime, leading to unexpected behavior, denial of service, or even remote code execution in some specific scenarios. This issue has been patched in version 12.5.1. A workaround for this issue involves sanitizing the path argument provided to the set function to ensure that no part of the path string is __proto__, prototype, or constructor.

EPSS

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

6.8 Medium

CVSS4

Дефекты

CWE-1321