Vulnerability library
Security checkFebruary 12, 2025

Deserialization of Untrusted Data in bson

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

High severitynpmbson

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 bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. The package will ignore an unknown value for an object’s _bsontype, leading to cases where an object is serialized as a document rather than the intended BSON type.

Recommendation

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

  • Affected version(s): < 1.1.4
  • Patched version(s): 1.1.4

References

Could your website be exposed too?

SmartScanner can check your website for Deserialization of Untrusted Data in bson and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 12, 2025