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.
{
"cwe_ids": [
"CWE-20",
"CWE-670"
],
"github_reviewed": true,
"github_reviewed_at": "2023-07-18T21:09:18Z",
"nvd_published_at": "2019-12-11T20:15:00Z",
"severity": "HIGH"
}