What’s Vulnerable › Vulnerabilities
CVE-2018-13863
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-07-10 · updated 2026-06-17
Description
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
Affected products
- MongoDB Inc. js-bson: from 0.5.0 before 1.0.5 — fixed in 1.0.5
How to fix
Upgrade to a fixed version: MongoDB Inc. js-bson 1.0.5. Check the vendor advisory for mitigations.
References
- https://github.com/mongodb/js-bson/commit/bd61c45157c53a1698ff23770160cf4783e9ea4a
- https://snyk.io/vuln/npm:bson:20180225
- https://github.com/mongodb/js-bson/commit/bd61c45157c53a1698ff23770160cf4783e9ea4a
- https://snyk.io/vuln/npm:bson:20180225
Get alerted when CVE-2018-13863 or the next vulnerability affects your stack