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-2019-11818 Vulnerability in maven package org.opencms:org.opencms.workplace.tools.accounts
CVE-2020-7661 Vulnerability in maven package org.webjars.npm:url-regex
CVE-2023-36665 Vulnerability in maven package org.webjars.npm:github-com-protobufjs-protobuf-js
CVE-2020-7769 Vulnerability in npm package nodemailer
CVE-2022-29256 Vulnerability in maven package org.webjars.npm:sharp