Vulnerability library
Security checkSeptember 05, 2023

js-bson vulnerable to REDoS

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmbson

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for js-bson vulnerable to REDoS and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 05, 2023