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
- Twitter-Post-Fetcher vulnerable to Use of Web Link to Untrusted Target with window.opener Access - CVE-2018-25058
- metascraper before v5.2.0 vulnerable to stored cross-site scripting - CVE-2018-3773
- Pandao editor.md vulnerable to DOM XSS - CVE-2018-19056
- Pandao editor.md vulnerable to XSS in IMG attributes - CVE-2018-16330
- Tags:
- npm
- bson
Anything's wrong? Let us know Last updated on September 05, 2023