Vulnerability library
Security checkSeptember 26, 2023

bson-objectid contains Improper input validation

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

High severitynpmbson-objectid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An issue was discovered in the BSON ObjectID (aka bson-objectid) package 1.3.0 for Node.js. ObjectID() allows an attacker to generate a malformed objectid by inserting an additional property to the user-input, because bson-objectid will return early if it detects _bsontype==ObjectID in the user-input object.

Recommendation

No fix is available yet. Followings are affected versions:

  • <= 1.3.0

References

Could your website be exposed too?

SmartScanner can check your website for bson-objectid contains Improper input validation and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 26, 2023