Skip to content

js-bson vulnerable to REDoS

High severity GitHub Reviewed Published Sep 17, 2018 to the GitHub Advisory Database • Updated Sep 5, 2023

Package

npm bson (npm)

Affected versions

>= 0.5.0, < 1.0.5

Patched versions

1.0.5

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.

References

Published to the GitHub Advisory Database Sep 17, 2018
Reviewed Jun 16, 2020
Last updated Sep 5, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2018-13863

GHSA ID

GHSA-8462-q7x7-g2x4

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.