Skip to content
EventPast event

Serena MCP coding agent has a severe RCE vulnerability

1 reports1 reporting sources

Start here

AI overview

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 provided
  1. Date not given
    about.gitlab.comSelected
    GitLab 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

No discussion links have been collected for this event yet.

Attention trend

New sources per day

1 in 10 days·most 1 (Oct 5)·today 0

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

Hourly attention

No comparable trend data