Skip to content

Translation in progress Some entries still include text in the original language.

about.gitlab.com· Daniel Abeles / Abisheik Magesh(GitLab Threat Research Group)·Indexed by this site · Originally publishedDate not givenSelectedAttention63

GitLab discloses a severe remote code execution vulnerability in the Serena MCP coding agent

Critical remote code execution in Serena, a popular MCP coding agent

AI summary

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).

Why it was selected

GitLab 威胁研究团队披露 Serena MCP 服务端的模板注入漏洞,并给出信任门被绕过的完整调用链,可对照检查自家 MCP 工具的信任模型覆盖范围。

Read originalabout.gitlab.com