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. As a result, objects in arbitrary forms can bypass formatting if they have a valid bsontype.
Remediation
References
https://github.com/williamkapke/bson-objectid/issues/30
https://www.npmjs.com/package/bson-objectid
Related Vulnerabilities
CVE-2021-44228 Vulnerability in maven package org.apache.logging.log4j:log4j-core
CVE-2020-26237 Vulnerability in maven package org.webjars.bowergithub.highlightjs:highlight.js
CVE-2023-26111 Vulnerability in npm package @nubosoftware/node-static
CVE-2022-31103 Vulnerability in npm package lettersanitizer
CVE-2021-39232 Vulnerability in maven package org.apache.ozone:ozone-main