FastLED is the library you reach for when you want LEDs to do cheerful things. Its repository also ships an MCP server that will run a command on your machine if an AI agent asks it to.
CVE:CVE-2026-78812 · Severity: High (CVSS 4.0: 8.5 · CVSS 3.1: 7.8) · CWE: CWE-78, OS Command Injection · Affected: FastLED/FastLED mcp_server.py at commit ff853d5f3f8ee16d4a55e8f3dd5a6c0e30593f39 (March 14, 2026). run_specific_command is unchanged in this respect on master as of commit f1efdf0 (October 20, 2026).
What Is FastLED, and Its MCP Server?
FastLED is a widely used library for driving addressable LEDs on Arduino and other microcontrollers. Alongside the library, the repository ships mcp_server.py, an MCP (Model Context Protocol) server for AI-assisted development of the project itself, registered for Cursor in .cursor/mcp.json. It gives AI agents a set of project tools for running tests, compiling examples, linting, and a general-purpose command runner. The file's header is addressed to those agents. It tells them how to run Python and shell commands, and to ask before deleting anything.
The Vulnerability
Root Cause
run_specific_command is meant to run commands, so command execution itself is not the bug. The bug is that nothing that holds sits between untrusted content and that call. Two things combine.
Impact
Execution of arbitrary commands as the user running the MCP server. The practical risk is to developers who connect AI coding agents to this server on a machine holding source code, tokens, or other credentials.
Fix Status
The tool's purpose is to run project commands. The vulnerability is that it is reachable from untrusted content, through an AI agent or another MCP client, with no control in the server that holds, and the one check in the repository is trivially evaded.
Disclosure Timeline
| Date | Event |
|---|---|
| Mar 30, 2026 | Vulnerability reported to the maintainer by direct message, using the contact listed in the repository's security policy |
| Jun 13, 2026 | Maintainer acknowledged the report and chose not to publish a formal GitHub security advisory |
| Sep 2, 2026 | CVE-2026-78812 assigned by MITRE |
| Oct 21, 2026 | Advisory published |
What You Can Do With This
If you run FastLED's MCP server:
- Don't connect it to an agent that processes untrusted content on a machine that holds secrets. Treat the agent's tool calls as untrusted.
- Run it in a container or VM with no credentials mounted.
- Require human approval for each command the agent proposes, and read what it actually runs.
- Don't treat the repository's hook as a security control. It keeps agents off the wrong build tools; it does not stop a determined payload.
- If you only use FastLED as a library, you are not affected.
If you build MCP servers that execute commands:
- Put the boundary in the server. A check in the client or agent layer protects only the clients that run it. The server is the only component that sees every call.
- Don't filter command strings. Any check that matches patterns in text can be defeated by encoding, quoting, or an interpreter that builds the real command at runtime.
- Allowlist executables and validate arguments. Resolve the binary by full path and accept only arguments you expect. A tool that must run an interpreter on caller-supplied code is a code execution tool and should be documented as one.
- Ask whether a general-purpose command tool is needed at all. If purpose-built tools cover the workflows, the generic one only adds attack surface.
- Treat every tool call as untrusted input. Tool calls come from model output, which is shaped by everything the model has read.
References
The Big Picture
A well-maintained, widely used project shipped a command runner with no boundary of its own, and the one guardrail in the repository lives in a different layer and matches on text. If that is what the developer tooling in a popular repository looks like, what is hiding in the MCP servers your team installed for convenience (or fun) and never looked at again?
mcp-audit gives security teams visibility into which MCP servers are connected across developer machines, what tools they expose, and where the risk is before the next CVE makes it your problem.
