{"id":"CVE-2026-140133","aliases":["EUVD-2026-139966","GHSA-c2cv-qv6m-wqf7","GHSA-j72j-pww4-gg46"],"status":"published","title":"mcp-use CodeExecutor code_executor.py _build_namespace code injection","description":"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.","severity":{"version":"4.0","score":6.9,"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","level":"medium","assessor":"cna","from":"cve","others":[{"version":"3.1","score":7.3,"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","level":"high","assessor":"cna","from":"cve"},{"version":"3.0","score":7.3,"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","level":"high","assessor":"cna","from":"cve"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C","assessor":"cna","from":"cve"},{"version":"4.0","score":5.5,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","from":"ghsa"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","from":"ghsa"},{"version":"4.0","score":5.5,"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","level":"medium","from":"osv"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"secondary","from":"nvd"}]},"epss":{"day":"2026-12-04","score":0.00565,"percentile":0.48384,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-74","CWE-94"],"published":"2026-12-01T07:30:20Z","modified":"2026-12-02T21:01:12Z","products":[{"vendor":"mcp-use","product":"mcp-use"}],"references":[{"url":"https://vuldb.com/vuln/446843","tags":["vdb-entry","technical-description","advisory"]},{"url":"https://vuldb.com/vuln/446843/cti","tags":["signature","permissions-required","report"]},{"url":"https://vuldb.com/cve/CVE-2026-140133","tags":["third-party-advisory","advisory"]},{"url":"https://vuldb.com/submit/1084774","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/mcp-use/mcp-use/issues/2816","tags":["issue-tracking","report"]},{"url":"https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46","tags":["broken-link","advisory"]},{"url":"https://github.com/mcp-use/mcp-use/","tags":["product","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140133","tags":["advisory"]},{"url":"https://github.com/mcp-use/mcp-use"},{"url":"https://github.com/advisories/GHSA-c2cv-qv6m-wqf7"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140133.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-140133","title":"mcp-use CodeExecutor code_executor.py _build_namespace code injection","description":"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.","status":"published","published":"2026-12-01T07:30:20.49Z","modified":"2026-12-01T13:52:35.784Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium","assessor":"cna"},{"version":"3.1","score":7.3,"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","level":"high","assessor":"cna"},{"version":"3.0","score":7.3,"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","level":"high","assessor":"cna"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C","assessor":"cna"}],"cwes":["CWE-94","CWE-74"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T13:56:29.25298Z"}],"euvd":[{"id":"EUVD-2026-139966","description":"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.","status":"published","published":"2026-12-01T07:30:20Z","modified":"2026-12-01T13:52:35Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"updated_at":"2026-12-01T12:18:06.023328Z"}],"ghsa":[{"id":"GHSA-c2cv-qv6m-wqf7","title":"A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the...","description":"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.","status":"published","published":"2026-12-01T09:30:27Z","modified":"2026-12-01T09:30:34Z","cvss":[{"version":"4.0","score":5.5,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-74"],"updated_at":"2026-12-01T09:57:13.805746Z"}],"nvd":[{"id":"CVE-2026-140133","description":"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.","status":"published","published":"2026-12-01T08:17:13.8Z","modified":"2026-12-01T14:18:20.957Z","cvss":[{"version":"4.0","score":5.5,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"secondary"}],"cwes":["CWE-74","CWE-94"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T14:20:25.638744Z"}],"osv":[{"id":"CVE-2026-140133","title":"mcp-use CodeExecutor code_executor.py _build_namespace code injection","description":"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.","status":"published","published":"2026-12-01T07:30:20.49Z","modified":"2026-12-02T21:01:12.897868708Z","cvss":[{"version":"4.0","score":5.5,"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","level":"medium"}],"cwes":["CWE-74","CWE-94"],"updated_at":"2026-12-02T21:28:42.350468Z"}]}}
