CVE-2019-2391 JS-bson may incorrectly serialise some requests

Medium 4.2 Published Updated

Incorrect JSON parsing in the js-bson library may lead to improper serialization and potential data disclosure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-2391?

CVE-2019-2391 is a medium-severity unsafe deserialization vulnerability in MongoDB Inc. js-bson, published on 31 Mar 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Incorrect parsing of certain JSON input may result in js-bson not correctly serializing BSON. This may cause unexpected application behaviour including data disclosure. This issue affects: MongoDB Inc. js-bson library version 1.1.3 and prior to.

Weakness: CWE-502

Which versions are affected by CVE-2019-2391?

2 open source packages ship an affected version, including bson. It affects 1 product.

PackageAffectedFixed in
bson npmAll versions1.1.4
bson npmAll versions1.1.4

Products include Mongodb Js-Bson.

How do I fix CVE-2019-2391?

Upgrade bson to 1.1.4 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2019-2391 being exploited?

There is no known exploitation of CVE-2019-2391 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2019-2391, GHSA-4jwp-vfvf-657p, ROOT-APP-NPM-CVE-2019-2391, UBUNTU-CVE-2019-2391.

Is CVE-2019-2391 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free