On December 2 JetBrains disclosed a critical vulnerability in TeamCity On-Premises (CVE-2026-136858, CVSS 9.1). An attacker who can reach the server over HTTP(S) can take the place of an existing, authorized build agent without any account or password. All On-Premises versions are affected.
Anyone who runs CI/CD knows what that means. An agent receives not only builds but also the secrets passed to them: deploy keys, repository tokens, cloud credentials. A fake agent can intercept those builds, falsify results and publish tampered artifacts. Later builds that consume those artifacts end up running the attacker's code. The damage does not stay on one server, it moves into the software supply chain.
The issue was reported on November 24 by researcher Jiawei Guo. JetBrains is not aware of attacks in the wild, and TeamCity Cloud has already been fixed. Still, there is a reason to hurry: another critical TeamCity flaw (CVE-2026-63077), disclosed in late July, was added to CISA's list of exploited vulnerabilities in early August.
Update the server to 2026.1.7, 2026.2.3 or 2026.3. If you cannot restart it right away, install the JetBrains security patch plugin: it works on 2021.2 and later and fixes only this vulnerability. On your reverse proxy, allow the /app/agents path only from your own agents' IP addresses, including the outbound addresses of cloud agents and NAT gateways. In general, it is better not to expose TeamCity to the internet at all. After updating, check teamcity-server.log: entries for an existing agent name that carry a different, non-empty authorization token may point to a takeover attempt.
Sources: JetBrains: CVE-2026-136858 advisory, The Hacker News: TeamCity build agent hijacking, Help Net Security: CVE-2026-136858 fixed








