Skip to content
Fencer Vulns
high 7.5

CVE-2018-13863 json

js-bson vulnerable to REDoS

published 2018-07-10 8 y ago modified 2026-06-17 4 mo ago also GHSA-8462-q7x7-g2x4 , EUVD-2018-0447

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.9%
EPSS 1.9% chance of exploitation in 30 days, percentile 80%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm bson 1.0.5
  • mongodb js-bson 1.0.5
  • node-mongodb Debian 12 3.1.10+~3.1.9-1

debian advisories DEBIAN-CVE-2018-13863

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-13863 updated cvss 3.7

nodejs-bson: Regular expression denial of service in decimal128.js

  • Red Hat Mobile Application Platform 4 nodejs-bson
    affected: no fix planned “Will not fix”
  • Red Hat Software Collections rh-nodejs6-nodejs-bson, rh-nodejs8-nodejs-bson
    affected: no fix available, no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.94% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • snyk.io https://snyk.io/vuln/npm:bson:20180225 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm bson
>=0.5.0, <1.0.5
1.0.5

Classification

Weakness
  • CWE-185 Incorrect Regular Expression
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

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.