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
- Sanitize-html Vulnerable To REDoS Attacks - CVE-2022-25887
- Bootstrap vulnerable to Cross-Site Scripting (XSS) - CVE-2018-14040
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - html-parse-stringify - CVE-2021-23346
- bracket-template vulnerable to reflected XSS - CVE-2018-3735
You might also like:
- Tags:
- npm
- bson
Anything's wrong? Let us know Last updated on September 05, 2023


