Vulnerabilities/

JSONata expression can pollute the "Object" prototype

Severity:
High

Description

In JSONata versions >= 1.4.0, < 1.8.7 and >= 2.0.0, < 2.0.4, a malicious expression can use the transform operator to override properties on the Object constructor and prototype. This may lead to denial of service, remote code execution or other unexpected behavior in applications that evaluate user-provided JSONata expressions.

Recommendation

Update the jsonata package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
jsonata
Anything's wrong? Let us know Last updated on March 06, 2024

This issue is available in SmartScanner Professional

See Pricing