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.
Remediation
References
https://github.com/mongodb/js-bson/commit/bd61c45157c53a1698ff23770160cf4783e9ea4a
https://snyk.io/vuln/npm:bson:20180225
Related Vulnerabilities
CVE-2022-24196 Vulnerability in maven package com.itextpdf:itext7-core
CVE-2021-38296 Vulnerability in maven package org.apache.spark:spark-core
CVE-2021-23639 Vulnerability in npm package md-to-pdf
CVE-2022-35917 Vulnerability in npm package @solana/pay
CVE-2019-14862 Vulnerability in maven package org.webjars:knockout