bson-objectid contains Improper input validation
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Sep 26, 2023
Description
Published by the National Vulnerability Database
Dec 11, 2019
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Jul 18, 2023
Last updated
Sep 26, 2023
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. As a result, objects in arbitrary forms can bypass formatting if they have a valid bsontype.References