3 matches found
Mongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other command
Summary From 6.3.5-6.13.12, Mongoose 6 decides whether a value is a BSON type by checking only its bsontype property. A plain object such as "bsontype":"ObjectID","id":"" therefore passes the ObjectId cast. bson 4.x then writes no id bytes but still advances 12 bytes in its serialization buffer, ...
npm: Mongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other command
npm: Mongoose: Plain objects with a forged bsontype bypass ObjectId and String casting, leaking and replaying data from other command vulnerability discovered by ? in WordPress npm mongoose versions = 6.3.5, 6.13.13...
GHSA-RXM2-55PG-68Q6 Mongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other command
Summary From 6.3.5-6.13.12, Mongoose 6 decides whether a value is a BSON type by checking only its bsontype property. A plain object such as "bsontype":"ObjectID","id":"" therefore passes the ObjectId cast. bson 4.x then writes no id bytes but still advances 12 bytes in its serialization buffer, ...