Live threats

All CVEs / Mongodb

CVE-2018-13863Mongodb Js-bson

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Jul 10, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Js-bson.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm bson ≥ 0.5.0 < 1.0.5 1.0.5 npm install bson@1.0.5

Per OSV / GitHub Advisories (GHSA-8462-q7x7-g2x4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mongodbjs-bson≥ 0.5.0 < 1.0.5

Official sources

References

Links published by the sources. Open them with care.

  • github.com Patch Third Party Advisory
  • snyk.io Exploit Technical Description Third Party Advisory