Live threats

All CVEs / MongoDB

CVE-2019-10758MongoDB mongo-express

Remote Code Execution in mongo-express via toBSON

Critical 9.9 KEV High EPSS

Priority
68
CVSS 3.1
9.9
EPSS
84.7%
probability of exploitation in 30 days · percentile 100
Auth required
Yes
In KEV since
Dec 10, 2021
CISA deadline
Jun 10, 2022
Ransomware use
Unknown
Published
Dec 24, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: active · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

What happens

mongo-express before version 0.54.0 is vulnerable to remote code execution through endpoints using the `toBSON` method. An authenticated user can execute arbitrary commands by exploiting unsafe use of the `vm` dependency. CISA confirmed this vulnerability is actively exploited.

Show the original NVD text

mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method. A misuse of the `vm` dependency to perform `exec` commands in a non-safe environment.

Source text, unmodified. NVD.

Exploitation confirmed by CISA

mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method.

Action required by CISA: Apply updates per vendor instructions.

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 0.54.0

Update mongo-express to version 0.54.0 or later.

Vendor advisory · www.cisa.gov ↗

  1. Apply the vendor's security update for mongo-express.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 10, 2022.
  3. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mongo-express < 0.54.0 0.54.0 npm install mongo-express@0.54.0

Per OSV / GitHub Advisories (GHSA-h47j-hc6x-h3qq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mongo-express_projectmongo-express< 0.54.0

Official sources

References

Links published by the sources. Open them with care.