Vulnerabilities/

mockjs vulnerable to Prototype Pollution via the Util.extend function

Severity:
High

Description

All versions of the package mockjs are vulnerable to Prototype Pollution via the Util.extend function due to missing check if the attribute resolves to the object prototype. By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones.

Recommendation

No fix is available yet. Followings are affected versions:

References

Related Issues

Tags:
npm
mockjs
Anything's wrong? Let us know Last updated on December 17, 2023

This issue is available in SmartScanner Professional

See Pricing