{"schemaVersion":3,"id":"CVE-2026-53710","aliases":["GHSA-xm98-3vcf-fph7","PYSEC-2026-3862"],"status":"published","duplicateOf":null,"title":null,"description":"MCP Context Forge is an AI gateway, registry, and proxy for MCP, A2A, REST, and gRPC APIs. Prior to 1.0.2, the python_sandbox_server in mcp-servers/python/python_sandbox_server/src/python_sandbox_server/server_fastmcp.py exposes raw getattr through safe_builtins, omits a required _getattr_ guard, and relies on validate_code checks for literal dangerous dunder strings. An attacker can construct dunder names at runtime, traverse the Python class hierarchy, reach subprocess.Popen, and execute OS commands with the server process privileges through the execute_code MCP tool. The HTTP/SSE transport can expose this tool without authentication, while stdio-only deployments have reduced network reachability. The issue affects the python_sandbox_server subproject and does not directly affect the core Context Forge gateway or proxy components. This issue is fixed in version 1.0.2.","dates":{"published":"2026-09-15T16:47:41.085Z","modified":"2026-09-15T19:45:23.818Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":10,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01141,"percentile":0.66353,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.31400000000000006,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00827},"history":[{"date":"2026-09-16T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01141,"percentile":0.66353}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01141,"percentile":0.66353}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-693","name":"Protection Mechanism Failure","description":"The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.","type":"weakness","status":"Draft","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/693.html"}],"affected":[{"vendor":"ibm","product":"mcp-context-forge","name":"mcp-context-forge","label":"mcp-context-forge","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.2","eol":null,"hubHref":"/vendor/ibm/mcp-context-forge"},{"vendor":"PyPI","product":"mcp-contextforge-gateway","name":"mcp-contextforge-gateway","label":"mcp-contextforge-gateway","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/mcp-contextforge-gateway","purlType":"pypi","versions":[{"text":"< 1.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.2","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/IBM/mcp-context-forge/security/advisories/GHSA-xm98-3vcf-fph7","label":"github.com/IBM/mcp-context-forge/security/advisories/GHSA-xm98-3vcf-fph7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/IBM/mcp-context-forge/commit/63a2900e6301b9c8a483a38d3737a1beb3a7ce89","label":"github.com/IBM/mcp-context-forge/commit/63a2900e6301b9c8a483a38d3737a1beb3a7ce89","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/IBM/mcp-context-forge/releases/tag/v1.0.2","label":"github.com/IBM/mcp-context-forge/releases/tag/v1.0.2","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/IBM/mcp-context-forge","label":"github.com/IBM/mcp-context-forge","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/IBM/mcp-context-forge/releases#release-v1.0.2","label":"github.com/IBM/mcp-context-forge/releases","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/mcp-contextforge-gateway","label":"pypi.org/project/mcp-contextforge-gateway","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-xm98-3vcf-fph7","label":"github.com/advisories/GHSA-xm98-3vcf-fph7","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53710","label":"nvd.nist.gov/vuln/detail/CVE-2026-53710","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-15T16:47:41.085Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-15T19:45:23.818Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T23:52:42.272Z","stale":false,"partial":false}}