CVE-2019-19729
HIGH 7.5CVSS 3.1bson-objectid contains Improper input validation
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.
- Published
- 11 Dec 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20CWE-670
- Also known as
- GHSA-p84x-5xx8-hff9
- Sources
- NVDJSONOSV GHSA-p84x-5xx8-hff9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bson-objectid_project | bson-objectidcpe:2.3:a:bson-objectid_project:bson-objectid:1.3.0:*:*:*:*:node.js:*:* |
= 1.3.0 | |
| OSV | npm | bson-objectid | <= 1.3.0 |
References
- https://github.com/williamkapke/bson-objectid/issues/30 · Exploit, Third Party Advisory, WEB
- https://www.npmjs.com/package/bson-objectid · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-19729 · ADVISORY
- https://github.com/cabinjs/bson-objectid · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 11 Dec 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)