CVE-2018-13863
HIGH 7.5CVSS 3.0js-bson vulnerable to REDoS
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.
- Published
- 10 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-185CWE-400
- Also known as
- GHSA-8462-q7x7-g2x4
- Sources
- NVDJSONOSV GHSA-8462-q7x7-g2x4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | js-bsoncpe:2.3:a:mongodb:js-bson:*:*:*:*:*:*:*:* |
>= 0.5.0, < 1.0.5 | 1.0.5 |
| OSV | npm | bson | >= 0.5.0, < 1.0.5 | 1.0.5 |
References
- https://github.com/mongodb/js-bson/commit/bd61c45157c53a1698ff23770160cf4783e9ea4a · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/npm:bson:20180225 · Exploit, Technical Description, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-13863 · ADVISORY
- https://github.com/advisories/GHSA-8462-q7x7-g2x4 · ADVISORY
- https://github.com/mongodb/js-bson · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 10 Jul 2018)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 Sep 2018)