Skip to content
RCE Write-up Intermediate

Anatomy of a Modern Threat: Deconstructing the Figma MCP Vulnerability

A command injection flaw in a Figma MCP server allowed an attacker to inject an OS command into an API parameter, leading to remote code execution. This could let an attacker exfiltrate data, manipulate files, or move deeper into the network while appearing as legitimate AI agent traffic.

salt.security

Published on salt.security

Threat researchers recently disclosed a severe vulnerability in a Figma Model Context Protocol (MCP) server, as reported by The Hacker News. While the specific patch is important, the discovery itself serves as a critical wake-up call for every organization rushing to adopt AI.

Eric Schwake, Head of Product Marketing, on salt.security

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a command injection vulnerability because the backend passed an API parameter directly into a shell command without sanitising it.

Impact

An attacker could exfiltrate sensitive data, manipulate system files, or use the server as a beachhead to move deeper into the corporate network, all while appearing as legitimate traffic from an AI agent.

What the attacker needed

Access to the MCP server API; ability to send crafted API requests

The fix

The vulnerability should be fixed by properly sanitising API parameters before using them in shell commands, and the text implies a patch exists but does not detail it.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

An AI agent uses a special protocol called MCP to talk to design tools like Figma. The server that handles this communication had a bug: it took a value from an API request and ran it as a system command without checking it. This let an attacker run their own commands on the server, which is very dangerous.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.