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-2020-15232 Vulnerability in maven package org.mapfish.print:print-standalone
CVE-2022-41940 Vulnerability in maven package org.webjars.npm:engine.io
CVE-2018-18853 Vulnerability in maven package io.spray:spray-json_2.10
CVE-2017-16083 Vulnerability in npm package node-simple-router
CVE-2022-24823 Vulnerability in maven package io.netty:netty-common