Vulnerability library
Security checkJanuary 29, 2023

Prototype poisoning

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

Medium severitynpmmsgpack5

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The issue is as follows: when msgpack5 decodes a map containing a key "__proto__", it assigns the decoded value to __proto__. As you are no doubt aware, Object.prototype.__proto__ is an accessor property for the receiver’s prototype.

Recommendation

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

  • Affected version(s): **>= 5.0.0, < 5.2.1 >= 4.0.0, < 4.5.1 < 3.6.1**
  • Patched version(s): **5.2.1 4.5.1 3.6.1**

References

Could your website be exposed too?

SmartScanner can check your website for Prototype poisoning and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 29, 2023