CVE-2019-19729 bson-objectid contains Improper input validation

High 7.5 Published Updated

Attackers can bypass ObjectID formatting validation by injecting a specific property, potentially leading to data integrity issues in applications using the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2019-19729?

CVE-2019-19729 is a high-severity vulnerability in n/a, published on 11 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-670

Which versions are affected by CVE-2019-19729?

2 open source packages ship an affected version, including bson-objectid. It affects 1 product.

PackageAffectedFixed in
bson-objectid npmAll versions to 1.3.0None
bson-objectid npmAll versions to 1.3.0None

Products include Bson-Objectid Project Bson-Objectid.

How do I fix CVE-2019-19729?

No fix has been published for CVE-2019-19729 yet. Limit exposure of the affected software until one is available.

Is CVE-2019-19729 being exploited?

There is no known exploitation of CVE-2019-19729 in the wild and no public exploit code.

Sources

Also known as GHSA-p84x-5xx8-hff9.

Is CVE-2019-19729 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free