Skip to content
OpenAdvisories
High · 7.5 CVE-2018-13863 EUVD-2018-0447GHSA-8462-q7x7-g2x4

js-bson vulnerable to REDoS

Published Jul 10, 2018 · Updated Sep 16, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 node-mongodb 3.1.10+~3.1.9-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm bson >= 0.5.0, < 1.0.5 1.0.5 GHSA-8462-q7x7-g2x4

References