Code injection in mongo-express
Priority CRITICAL 100Exploited in the wildCWE-94Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
Exploitation Active In CISA KEV since 2021-12-10CISA due date 2022-06-10
EPSS 0.84726 99th percentileScored 2026-11-07
Fix Fixed mongo-express (npm): 0.54.0
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Active
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | mongo-express | All versions prior to version 0.54.0 | — | No fix listed | CNA |
| — | mongo-express (npm) | before 0.54.0 | 0.54.0 | Patch available | GHSA-h47j-hc6x-h3qq |
- mongo-express Vendor— Affected All versions prior to version 0.54.0 Fixed in — No fix listed CNA
- mongo-express (npm) Vendor— Affected before 0.54.0 Fixed in 0.54.0 Patch available GHSA-h47j-hc6x-h3qq
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:* | before 0.54.0 | Vulnerable | Mongo-express Project |
- cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:* Versions before 0.54.0 Vulnerable ·Mongo-express Project
Remediation
- Fix · GHSA-h47j-hc6x-h3qq mongo-express (npm) Fixed in 0.54.0 Advisory →
Timeline
- 2021-12-10 Added to CISA KEV
- 2026-10-02 Threatist record created from CVE-2019-10758
- 2026-10-03 Alias added: GHSA-h47j-hc6x-h3qq
References
Other 7
- https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq
- https://github.com/mongo-express/mongo-express/pull/522
- https://github.com/mongo-express/mongo-express/commit/7d365141deadbd38fa961cd835ce68eab5731494
- https://github.com/mongo-express/mongo-express/commit/d8c9bda46a204ecba1d35558452685cd0674e6f2
- https://github.com/mongo-express/mongo-express
- https://github.com/mongo-express/mongo-express/blob/ea02b364d43f179f191fc91fb9962efdb0843a8d/lib/bson.js#L60
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758
More MongoDB vulnerabilities
- TI-2025-13542 Zlib compressed protocol header length confusion may allow memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79422 Unbounded memory growth in MongoDB C# Driver BSON deserialization CVSS 4.0HIGH 8.2
- TI-2026-79427 Authentication bypass via issuer-and-serial-only certificate equality CVSS 4.0HIGH 7.6
- TI-2026-79426 NoSQL injection in MongoDB C# Driver LINQ filter field names CVSS 4.0HIGH 7.2
Sources
- CVE-2019-10758 · CVE Program
- CVE-2019-10758 · NVD
- CISA Known Exploited Vulnerabilities
- FIRST EPSS
- GHSA-h47j-hc6x-h3qq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences