Read the docs
TI-2020-20029 Aliases GHSA-m9hw-7xfv-wqg7

Prototype Pollution in json-logic-js

Priority LOW 38CWE-471Published · Updated

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

Fix Fixed json-logic-js (npm): 2.0.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—json-logic-js (npm)before 2.0.02.0.0Patch availableGHSA-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

  1. 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