PTS security notes / MCP servers / Serena

Is Serena safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It can read and edit files in your project and run shell commands. Its tools include execute_shell_command, symbol-level edits, file creation and delete-lines, and a memory store. GitHub lists 3 advisories, including a critical one. Pin a current version, activate it only on one project, and deny the shell tool if you do not need it.

What it is

Serena is an agent toolkit that uses language servers to find and edit code by symbol. It also has file tools, a shell tool and project memories, and runs as an MCP server for coding agents.

Maintainer
Communityoraios on GitHub (organisation account, community project)
Source
oraios/serena31,994 GitHub stars · not stated on GitHub licence
Transport
stdio (default), HTTP (optional)
Packages
serena-agent pypi · latest 2.1.0 · 130,660 downloads last month
Latest release
v2.1.0 2026-10-19
Public advisories
3GitHub and OSV, as of December 5, 2026

What it can do

Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.

It edits your project directly and, with the shell tool on, can run any command your user can.

ToolWhat it can doNotes
execute_shell_commandRuns codeRuns shell commands, for example builds and tests.
create_text_fileWrites
replace_contentWrites, DeletesRegex or literal replace in a file.
replace_in_filesWrites, Deletes
delete_linesDeletes
replace_symbol_bodyWrites, Deletes
rename_symbolWritesRenames across the code base.
safe_delete_symbolDeletes
write_memoryWritesWrites a memory file in the project.
delete_memoryDeletes
read_fileReads
find_symbolReads
search_for_patternReads
JetBrains-backed tools
13 tools
Writes, DeletesOnly with the JetBrains plugin. JetBrainsRenameTool, JetBrainsMoveTool, JetBrainsDebugTool
Other read, navigation, memory and config tools
27 tools
ReadsNavigation, diagnostics and project management. get_symbols_overview, find_referencing_symbols, list_dir, find_file, read_memory, get_current_config

Tool classes counted from src/serena/tools (53). Which tools load depends on your context, mode and config.

Credentials and least privilege

No credential for the core tools. Language servers it starts run as your user.

Public security advisories

Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range.

AdvisorySeveritySummaryAffectedFixed in
GHSA-pp25-4cg4-qcr9CriticalServer-Side Template Injection (SSTI) in mode/context prompt rendering → RCE on project activation, bypassing `trusted_project_path_patterns`<= 1.6.11.7.0
GHSA-pp6p-xvxf-8hhxHighRemote Code Execution via insecure pickle deserialization of LSP symbol cache (malicious repository → RCE on project activation)<= 1.7.12.0.0
GHSA-37h2-6p4f-mp3q · CVE-2026-49471HighUnauthenticated Flask dashboard on fixed port enables DNS rebinding → memory poisoning → RCE< v1.5.2v1.5.2+

What stands out

Safe-install checklist

Install command from the project's docs: uvx --from git+https://github.com/oraios/serena serena start-mcp-server.

  1. Pin the version. Use an exact version, not latest: uvx serena-agent==2.1.0 (see the README for your client). The README's main command installs from the Git repo. Pin a commit or a PyPI version instead.
  2. Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
  3. Use a pinned PyPI version or Git commit, not the moving repo head.
  4. Activate one project at a time. Deny execute_shell_command if your agent already has a shell, so you do not have two.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it serena:
    {
      "permissions": {
        "deny": [
          "mcp__serena__execute_shell_command",
          "mcp__serena__create_text_file",
          "mcp__serena__replace_content",
          "mcp__serena__replace_in_files",
          "mcp__serena__delete_lines",
          "mcp__serena__replace_symbol_body",
          "mcp__serena__rename_symbol",
          "mcp__serena__safe_delete_symbol"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas.
  7. Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.

For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?

Quick follow-ups

What can Serena do on my machine or accounts?

Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data; runs commands, scripts or code. It edits your project directly and, with the shell tool on, can run any command your user can.

Does Serena need a token or API key?

No credential for the core tools. Language servers it starts run as your user.

Has Serena had public security advisories?

Yes. 3 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.

How do I keep Serena from changing under me?

Pin the version, for example uvx serena-agent==2.1.0 (see the README for your client). Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.

Sources

This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages