~ / search / GHSA-p84x-5xx8-hff9

GHSA-p84x-5xx8-hff9

bson-objectid contains Improper input validation

Source: GitHub Advisory Database (reviewed) High CVE-2019-19729

Packages

EcosystemPackageAffectedFixed in
npm bson-objectid <= 1.3.0 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.