Vulnerability library
Security checkDecember 17, 2023

mockjs vulnerable to Prototype Pollution via the Util.extend function

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmmockjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated December 17, 2023