TeamCity Vulnerability Lets Anyone Pose as Your Build Agent, and Attackers Started Within a Day
- Who should care: Anyone running a self hosted TeamCity server reachable over HTTP or HTTPS. TeamCity Cloud is already fixed.
- What could go wrong: A stranger with no account poses as your build agent, takes its secrets and hands back poisoned artifacts.
- Do this: Patch to 2026.1.7, 2026.2.3 or 2026.3, then search teamcity-server.log.
- Worth remembering: Earlier critical TeamCity flaws landed on CISA’s Known Exploited Vulnerabilities list soon after disclosure.
Introduction
A critical TeamCity vulnerability lets anyone who can reach your build server claim to be one of its agents, and the server believes them. About a day after JetBrains shipped the fix, attackers were already testing it on honeypots.
What Happened?
JetBrains disclosed CVE-2026-136858 on December 2 and scored it 9.1 under CVSS 3.1. The bug lives in agent registration at /app/agents. A request carrying a real agent’s ID with the wrong authorization token got logged as a mismatch, then let through anyway. No TeamCity account is needed. On December 3, a threat intelligence firm reported attempts to exploit the TeamCity vulnerability on its honeypots, with attackers counting agent IDs up from 1.

What’s the Impact?
Build servers hold deploy keys, cloud tokens and signing material. A fake agent receives the jobs meant for a real one, plus every secret those jobs carry. It can also return tampered artifacts that your own pipeline signs and ships to customers. That turns this TeamCity vulnerability into a supply chain problem as well as a data theft problem.
How to Avoid This
- Patch or plug: Upgrade to a fixed release, or install the security patch plugin (2021.2 and later, no restart). Confirm it under Administration > Plugins, since the version number won’t change.
- Fence /app/agents: At the reverse proxy, allow it only from your agents’ IPs, including cloud egress and NAT gateways. Treat this as a stopgap mitigation until the patch is in.
- Grep one line: Search teamcity-server.log for “of the existing agent, but different authorization token”. An empty token is normal. A filled one is a lead.
- Chase each lead: Check that agent’s source IP, hostname and recent builds against the machine you know.
- Rotate and rebuild: If a hit looks real, keep the logs, rotate every credential those builds touched and rebuild their artifacts. Failed attempts may leave no trace, so a clean log is reassuring, but it is not proof.
TeamCity Vulnerability: Indicators of Compromise
No attacker IP addresses, file hashes or domains have been published yet. The log and behavior signs to hunt for are below.

The Machine That Ships Your Code Needs Someone Watching It
Most teams patch the firewall first and remember the CI server later. Secure.com runs security as a service, with human experts making the calls.
- Managed Exposure Management can find internet facing TeamCity servers, rank them against live exploitation and check that the fix landed.
- Managed SecOps watches for agent registrations from unknown addresses and token mismatch entries, then investigates each one.
- When a hit looks real, our experts help trace the affected builds and work with your engineers on credential rotation and clean rebuilds.
- Your team approves every high impact action, on one service and one bill.