figma-developer-mcp vulnerable to command injection in get_figma_data tool
### Summary A 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. The server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection (`|`, `>`, `&&`, etc.). ### Details The 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. ### Vulnerable code The following snippet illustrates the vulnerable code pattern used in the MCP Server’s tooling. ```js // https://github.com/GLips/Figma-Context-MCP/blob/v0.5.2/src/utils/fetch-with-retry.ts#L35 export async function fetchWithRetry(url: string, options: RequestOptions = {}): Promise { try { const response = await fetch(url, options); ... } catch (fetchError: any) { ... const curlHeaders = formatHeadersForCurl(options.headers); ... const curlCommand = `curl -s -S --fail-with-body -L ${curlHeaders.join(" ")} "${url}"`; //<--- ``` #### Using MCP Client IDE 1)
- Products
- figma-developer-mcp
- Affected versions
- Not specified
- Fixed versions
- 0.6.3
- CVEs
- CVE-2025-15061, CVE-2025-53967
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 08:58 UTC · Revision 1
Source evidence
figma-developer-mcp vulnerable to command injection in get_figma_data tool
core-osv · Original sourcePublished 30 Sept 2025, 17:01 UTC
### Summary A 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. The server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection (`|`, `>`, `&&`, etc.). ### Details The 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. ### Vulnerable code The following snippet illustrates the vulnerable code pattern used in the MCP Server’s tooling. ```js // https://github.com/GLips/Figma-Context-MCP/blob/v0.5.2/src/utils/fetch-with-retry.ts#L35 export async function fetchWithRetry(url: string, options: RequestOptions = {}): Promise { try { const response = await fetch(url, options); ... } catch (fetchError: any) { ... const curlHeaders = formatHeadersForCurl(options.headers); ... const curlCommand = `curl -s -S --fail-with-body -L ${curlHeaders.join(" ")} "${url}"`; //<--- ``` #### Using MCP Client IDE 1)
osv:GHSA-gxw4-4fc5-9gr5
figma-developer-mcp
Fixed versions: 0.6.3
Complete source record
{
"id": "f00268bbadc11387ed3c6c7cdf200899316cea5e72b6a6503e072edc7c915412",
"url": "https://osv.dev/vulnerability/GHSA-gxw4-4fc5-9gr5",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "figma-developer-mcp vulnerable to command injection in get_figma_data tool",
"summary": "### Summary A 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. The server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection (`|`, `>`, `&&`, etc.). ### Details The 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. ### Vulnerable code The following snippet illustrates the vulnerable code pattern used in the MCP Server’s tooling. ```js // https://github.com/GLips/Figma-Context-MCP/blob/v0.5.2/src/utils/fetch-with-retry.ts#L35 export async function fetchWithRetry(url: string, options: RequestOptions = {}): Promise { try { const response = await fetch(url, options); ... } catch (fetchError: any) { ... const curlHeaders = formatHeadersForCurl(options.headers); ... const curlCommand = `curl -s -S --fail-with-body -L ${curlHeaders.join(\" \")} \"${url}\"`; //<--- ``` #### Using MCP Client IDE 1) ",
"evidence": "osv:GHSA-gxw4-4fc5-9gr5",
"products": [
{
"name": {
"value": "figma-developer-mcp",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.6.3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "GHSA-gxw4-4fc5-9gr5",
"aliases": [
"CVE-2025-15061",
"CVE-2025-53967",
"GHSA-gxw4-4fc5-9gr5"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.3"
}
]
}
],
"package": {
"name": "figma-developer-mcp",
"purl": "pkg:npm/figma-developer-mcp",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-gxw4-4fc5-9gr5/GHSA-gxw4-4fc5-9gr5.json",
"last_known_affected_version_range": "<= 0.6.2"
}
}
],
"modified": "2026-10-08T02:56:07.754160239Z",
"provider": "osv",
"references": [
"https://github.com/GLips/Figma-Context-MCP/security/advisories/GHSA-gxw4-4fc5-9gr5",
"https://github.com/GLips/Figma-Context-MCP/commit/7f4b5859454b0567c2121ff22c69a0344680b124",
"https://github.com/GLips/Figma-Context-MCP"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2025-09-30T17:01:42Z"
}
},
"related_cves": [
{
"value": "CVE-2025-15061",
"evidence": "/aliases"
},
{
"value": "CVE-2025-53967",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 98379,
"published_at": "2025-09-30T17:01:42+00:00"
}