6.8medium
Radashi Vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
- Severity
- 6.8medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.70% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2xv9-ghh9-xc69
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| radashi-org radashi | < 12.5.1 | CVE List |
| radashi (npm) | before 12.5.1 | GitHub Advisory Database |
All scores
| GitHub_M | 6.8medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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
- Git commit:
8147abc8cfc3cfe9b9a17cd389076a5d97235a66 - CWE-1321: Improperly Controlled Modification of Dynamically-Determined Object Attributes ('Prototype Pollution'): https://cwe.mitre.org/data/definitions/1321.html
NVD (es)
Radashi es un conjunto de herramientas de utilidades de TypeScript. Antes de la versión 12.5.1, la función "set" de la librería Radashi era vulnerable a la contaminación de prototipos. Si un atacante pudiera controlar partes del argumento "path" de la función "set", podría modificar el prototipo de todos los objetos en el entorno de ejecución de JavaScript, lo que provocaría un comportamiento inesperado, una denegación de servicio o incluso la ejecución remota de código en algunos casos específicos. Este problema se ha corregido en la versión 12.5.1. Una solución alternativa consiste en sanear el argumento "path" proporcionado a la función "set" para garantizar que ninguna parte de la cadena de ruta sea __proto__, prototipo o constructor.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-48054 changed 2025-05-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2xv9-ghh9-xc69 changed 2025-05-27 | CC-BY-4.0 |
| NVD | CVE-2025-48054 changed 2026-06-17 | Public domain |