mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method
Published Dec 24, 2019 ·Due Jun 10, 2022
9.9
CRITICALCVSS 3.1
EPSS 84.73%
Description
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.
Affected products
- Vendor n/a Product Mongo-Express Defaultn/a
- Version All versions prior to version 0.54.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Mongo-Express | n/a |
|
- < 0.54.0
No data.
No Red Hat product state for this CVE.
mongo-express
npm
Introduced 0 Fixed 0.54.0
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | mongo-express | 0 | 0.54.0 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:S/C:C/I:C/A:C
Date Added
Dec 10, 2021
Patch Due
Jun 10, 2022
Required Action
Apply updates per vendor instructions.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
ActiveAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Feb 7, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 4, 2026.
Score over time
2021-2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 4, 2026 | 84.73% (0.84726) | 99.70th | v5 (v2026.06.15) |
| Jun 15, 2026 | 84.84% (0.84845) | 99.68th | v5 (v2026.06.15) |
| Mar 17, 2025 | 94.36% (0.94361) | 99.95th | v4 (v2025.03.14) |
| Dec 12, 2024 | 97.42% (0.97418) | 99.95th | v3 (v2023.03.01) |
| Feb 2, 2024 | 97.46% (0.97459) | 99.95th | v3 (v2023.03.01) |
| Nov 30, 2023 | 97.43% (0.97429) | 99.93th | v3 (v2023.03.01) |
| Oct 13, 2023 | 97.41% (0.97406) | 99.90th | v3 (v2023.03.01) |
| Sep 10, 2023 | 97.39% (0.97390) | 99.87th | v3 (v2023.03.01) |
| Jul 3, 2023 | 97.34% (0.97345) | 99.82th | v3 (v2023.03.01) |
| Apr 28, 2023 | 97.37% (0.97373) | 99.82th | v3 (v2023.03.01) |
| Apr 11, 2023 | 97.36% (0.97363) | 99.80th | v3 (v2023.03.01) |
| Mar 7, 2023 | 97.32% (0.97323) | 99.76th | v3 (v2023.03.01) |
| Mar 6, 2023 | 26.59% (0.26588) | 97.13th | v2 (v2022.01.01) |
| Feb 13, 2022 | 26.59% (0.26588) | 95.79th | v2 (v2022.01.01) |
| Feb 4, 2022 | 15.36% (0.15362) | 92.49th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.99% (0.03991) | 73.89th | v1 |
| Jan 6, 2022 | 3.99% (0.03991) | 73.67th | v1 |
| Sep 1, 2021 | 3.99% (0.03991) | 83.20th | v1 |
| Apr 14, 2021 | 3.99% (0.03991) | 0.00th | v1 |
References (9)
- https://github.com/advisories/GHSA-h47j-hc6x-h3qq Advisory
- https://github.com/mongo-express/mongo-express/blob/ea02b364d43f179f191fc91fb9962efdb0843a8d/lib/bson.js#L60
- 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/pull/522
- https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq
- https://nvd.nist.gov/vuln/detail/CVE-2019-10758
- https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215 x_refsource_MISCExploitThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758 government-resourceUS Government Resource
Change history (0)
No recorded changes yet.