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.
Recommendation
Update the bson package to the latest compatible version. Followings are version details:
- Affected version(s): >= 0.5.0, < 1.0.5
- Patched version(s): 1.0.5
References
Related Issues
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - CVE-2021-23346
- Twitter-Post-Fetcher vulnerable to Use of Web Link to Untrusted Target with window.opener Access - CVE-2018-25058
- Json2html vulnerable to cross-site scripting - CVE-2018-25053
- react-dev-utils on Windows vulnerable to Remote Code Execution - CVE-2018-6342
- Tags:
- npm
- bson
Anything's wrong? Let us know Last updated on September 05, 2023