Serena MCP coding agent has a severe RCE vulnerability
Start here
GitLab Threat Research Group found a server-side template injection vulnerability in Serena (GHSA-pp25-4cg4-qcr9): an attacker can place a malicious .serena/project.yml in a repository they control, and arbitrary code executes when a developer opens that project with the Serena MCP server. This vulnerability bypasses Serena's trusted_project_path_patterns control, which is specifically designed to prevent untrusted repositories from running code, because the pattern loading and prompt rendering paths never go through is_trusted validation.
Generated by AI from reports · Updated 5 days ago
Progress timeline
- Date not givenabout.gitlab.comSelectedGitLab discloses a severe remote code execution vulnerability in the Serena MCP coding agent
GitLab's threat research group discovered a server-side template injection vulnerability in Serena (GHSA-pp25-4cg4-qcr9). An attacker can place a malicious .serena/project.yml in a repository they control, and arbitrary code executes when a developer opens that project with the Serena MCP server. This vulnerability bypasses Serena's trusted_project_path_patterns control, which is specifically designed to prevent untrusted repositories from running code, because the pattern loading and prompt rendering paths never go through the is_trusted() check. The researchers reproduced the bypass under the strictest configuration with trusted_project_path_patterns empty; activation_command was blocked while the template injection executed as usual, which is a protection mechanism failure (CWE-693).
Related discussion
Attention trend
New sources per day
- Oct 5: 1 new sources (1 outlets, 0 accounts)
- Oct 6: 0 new sources (0 outlets, 0 accounts)
- Oct 7: 0 new sources (0 outlets, 0 accounts)
- Oct 8: 0 new sources (0 outlets, 0 accounts)
- Oct 9: 0 new sources (0 outlets, 0 accounts)
- Oct 10: 0 new sources (0 outlets, 0 accounts)
- Oct 11: 0 new sources (0 outlets, 0 accounts)
- Oct 12: 0 new sources (0 outlets, 0 accounts)
- Oct 13: 0 new sources (0 outlets, 0 accounts)
- Oct 14: 0 new sources (0 outlets, 0 accounts)