CVE-2025-48054: Radashi Radashi Allows Improperly Controlled Modification Vulnerability
MODERATECVE-2025-48054 is a MODERATE radashi allows improperly controlled modification vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Radashi libraries in the npm ecosystem. The issue involves radashi allows improperly controlled modification of object prototype attributes ('prototype pollution'). Remediation is available by upgrading affected packages to version 12.5.1.
CVE-2025-48054 at a Glance
How to Fix CVE-2025-48054
To remediate this vulnerability, upgrade all affected Radashi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install radashi@12.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls radashi
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-48054, inspect your project dependencies using npm:
npm ls radashi
Analyze the terminal output to locate any version of Radashi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.5.1), your application is affected.
Note: The npm ls radashi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Radashi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-48054 Affected Radashi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
radashi
|
npm |
< 12.5.1
|
12.5.1
|
References
Frequently Asked Questions
What is CVE-2025-48054?
Which Radashi versions are affected?
What version fixes CVE-2025-48054?
Is radashi affected?
What CWE is associated with CVE-2025-48054?
How can I check npm dependencies for CVE-2025-48054?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2xv9-ghh9-xc69",
"modified" : "2025-05-27T15:03:05Z",
"published" : "2025-05-27T15:03:05Z",
"aliases" : [ "CVE-2025-48054" ],
"summary" : "radashi Allows Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')",
"details" : "### Impact\n\nThis 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.\n\n### Patches\n\nThe vulnerability has been patched in commit [`8147abc8cfc3cfe9b9a17cd389076a5d97235a66`](https://github.com/radashi-org/radashi/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.\n\n### Workarounds\n\nUsers 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.\n\n### References\n\n- Git commit: [`8147abc8cfc3cfe9b9a17cd389076a5d97235a66`](https://github.com/radashi-org/radashi/commit/8147abc8cfc3cfe9b9a17cd389076a5d97235a66)\n- CWE-1321: Improperly Controlled Modification of Dynamically-Determined Object Attributes ('Prototype Pollution'): https://cwe.mitre.org/data/definitions/1321.html",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "radashi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/radashi-org/radashi/security/advisories/GHSA-2xv9-ghh9-xc69"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48054"
}, {
"type" : "WEB",
"url" : "https://github.com/radashi-org/radashi/commit/8147abc8cfc3cfe9b9a17cd389076a5d97235a66"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/radashi-org/radashi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-27T15:03:05Z",
"nvd_published_at" : "2025-05-27T05:15:23Z"
}
}