CVE-2019-19729 json
bson-objectid contains Improper input validation
published 2019-12-11 6 y ago modified 2026-06-17 4 mo ago also GHSA-p84x-5xx8-hff9 , EUVD-2022-4714
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
Exploit prediction
1.08% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/williamkapke/bson-objectid/issues/30 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | bson-objectid | <=1.3.0 |
no fix listed |
Classification
References
-
github.com
/williamkapke/bson-objectid/issues/30
web, exploit, third-party-advisory
-
npmjs.com
/package/bson-objectid
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2019-19729
advisory
-
github.com
/cabinjs/bson-objectid
package
Sources
- CVE List CVE-2019-19729
- GitHub Advisory GHSA-p84x-5xx8-hff9
- NVD CVE-2019-19729
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.