{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 9.9, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H", "temporalScore": 10.0, "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "temporalSeverity": "CRITICAL", "availabilityImpact": "HIGH", "privilegesRequired": "LOW", "exploitCodeMaturity": "HIGH", "confidentialityImpact": "HIGH"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"CRITICAL\"}"}}}], "affected": [{"vendor": "npm", "product": "mongo-express", "versions": [{"status": "affected", "version": "0", "lessThan": "0.54.0", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/mongo-express/mongo-express"}, {"url": "https://github.com/mongo-express/mongo-express/blob/ea02b364d43f179f191fc91fb9962efdb0843a8d/lib/bson.js#L60"}, {"url": "https://github.com/mongo-express/mongo-express/commit/7d365141deadbd38fa961cd835ce68eab5731494"}, {"url": "https://github.com/mongo-express/mongo-express/commit/d8c9bda46a204ecba1d35558452685cd0674e6f2"}, {"url": "https://github.com/mongo-express/mongo-express/pull/522"}, {"url": "https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-10758"}, {"url": "https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215"}, {"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758"}], "descriptions": [{"lang": "en", "value": "### Impact\n\nRemote code execution on the host machine by any authenticated user.\n\n### Proof Of Concept\n\nLaunching mongo-express on a Mac, pasting the following into the \"create index\" field will pop open the Mac calculator:\n\n```javascript\nthis.constructor.constructor(\"return process\")().mainModule.require('child_process').execSync('/Applications/Calculator.app/Contents/MacOS/Calculator')\n```\n\n### Patches\nUsers should upgrade to version `0.54.0`\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [example link to repo](http://example.com)\n* Email us at [example email address](mailto:example@example.com)\n\n#### Thanks\n\n@JLLeitschuh for finding and reporting this vulnerability\n\nThis vulnerability has been [exploited](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758) in the wild."}, {"lang": "en", "value": "Remote Code Execution Vulnerability in NPM mongo-express"}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2019-12-30T19:30:31Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 9, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:S/C:C/I:C/A:C", "authentication": "SINGLE", "integrityImpact": "COMPLETE", "accessComplexity": "LOW", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}, {"format": "CVSS", "cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 9.9, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "LOW", "confidentialityImpact": "HIGH"}}], "affected": [{"cpes": ["cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:*"], "vendor": "mongo-express_project", "product": "mongo-express", "versions": [{"status": "affected", "version": "0", "lessThan": "0.54.0", "versionType": "custom"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215", "tags": ["exploit", "third-party-advisory"]}, {"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758", "tags": ["x_us-government-resource"]}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "mongo-express versiones anteriores a 0.54.0, es vulnerable a una ejecución de código remota por medio de endpoints que utilizan el método \"toBSON\". Un uso inapropiado de la dependencia \"vm\" para ejecutar comandos \"exec\" en un entorno no seguro."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-94", "description": "CWE-94"}, {"lang": "en", "description": "NVD-CWE-noinfo"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2019-12-24T22:15:11Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2019-10758", "state": "PUBLISHED", "dateUpdated": "2025-10-27T17:12:23Z", "assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730", "datePublished": "2019-12-24T22:15:11Z", "assignerShortName": "snyk"}, "dataVersion": "5.0"}