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.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:mongodb:js-bson:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.5.0"
},
{
"fixed": "1.0.5"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "bd61c45157c53a1698ff23770160cf4783e9ea4a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}