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:
- <= 1.1.0
References
Could your website be exposed too?
SmartScanner can check your website for mockjs vulnerable to Prototype Pollution via the Util.extend function and gives you actionable findings to investigate.
Start a free scanRelated Issues
- lodash vulnerable to prototype pollution via array-path bypass in `_.unset`, `_.omit`, and `_.pullAt - CVE-2026-2950
- Prototype pollution in ag-grid-community via the _.mergeDeep function - CVE-2024-38996
- fast-xml-parser vulnerable to Prototype Pollution through tag or attribute name - CVE-2023-26920
- jsonata: Function Binding Prototype Pollution via hasOwnProperty Override - CVE-2026-12208


