{"id":"CVE-2026-140133","aliases":["CVE-2026-140133"],"related":[],"kind":"vulnerability","state":"published","title":"mcp-use CodeExecutor code_executor.py _build_namespace code injection","summary":"A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the function _build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor. Executing a manipulation of the argument code can lead to code injection. The attack can be launched remotely. The project maintainer explains, that the built-in Python sandbox executor is not meant for production use and users should rely on external sandbox providers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the function _build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor. Executing a manipulation of the argument code can lead to code injection. The attack can be launched remotely. The project maintainer explains, that the built-in Python sandbox executor is not meant for production use and users should rely on external sandbox providers.","source":"cvelist"}],"published":"2026-12-01T07:30:20.490Z","modified":"2026-12-01T14:18:20.957Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P","score":6.9,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C","score":7.5,"rating":"HIGH"}],"cwes":["CWE-74","CWE-94"],"affected":[{"ranges":[{"version":"1.7.0","status":"affected"},{"version":"1.7.1","status":"affected"}],"product":"mcp-use","cpe":"cpe:2.3:a:mcp-use:mcp-use:*:*:*:*:*:*:*:*","source":"cvelist"}],"references":[{"url":"https://vuldb.com/vuln/446843","tags":["technical-description","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/vuln/446843/cti","tags":["permissions-required","signature"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/cve/CVE-2026-140133","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/submit/1084774","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcp-use/mcp-use/issues/2816","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46","tags":["broken-link"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcp-use/mcp-use/","tags":["product"],"sources":["cvelist","nvd"]}],"credits":["carfeii (VulDB User)","VulDB CNA Team"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-12-01T13:31:52.612Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-140133","url":"https://www.cve.org/CVERecord?id=CVE-2026-140133","licence":"CVE Terms of Use","modified":"2026-12-01T13:52:35.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-140133","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140133","licence":"Public domain","modified":"2026-12-01T14:18:20.957Z"}],"updatedAt":"2026-12-01T14:32:17.048Z","epss":{"score":0.00452,"percentile":0.40945,"date":"2026-12-01T12:00:22.000Z"}}