CVE-2025-48054 Radashi Vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Attackers can achieve remote code execution or denial of service via prototype pollution in the set function of the Radashi library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-48054?
CVE-2025-48054 is a medium-severity code injection vulnerability in radashi-org radashi, published on 27 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-1321
Which versions are affected by CVE-2025-48054?
2 open source packages ship an affected version, including radashi.
| Package | Affected | Fixed in |
|---|---|---|
radashi npm | All versions | 12.5.1 |
radashi npm | All versions | 12.5.1 |
How do I fix CVE-2025-48054?
Upgrade radashi to 12.5.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-48054 being exploited?
There is no known exploitation of CVE-2025-48054 in the wild and no public exploit code.
Sources
Also known as GHSA-2xv9-ghh9-xc69.