Critical TeamCity flaw lets unauthenticated attackers pose as build agents, grab secrets (CVE-2026-136858)

JetBrains has fixed a critical authentication bypass vulnerability (CVE-2026-136858) in TeamCity On-Premises that allows unauthenticated attackers to impersonate legitimate build agents.
Successful exploitation could allow them to intercept builds, access the secrets passed to them, and tamper with build results and artifacts, the company warned on Wednesday.
TeamCity is JetBrains’ continuous integration and continuous delivery (CI/CD) server, i.e., the software that automatically builds, tests, packages and often deploys an organization’s code every time a developer pushes a change.
It’s offered as a JetBrains-hosted service (TeamCity Cloud) and as a self-hosted product (TeamCity On-Premises), which organizations run on their own infrastructure or in a cloud.A TeamCity installation consists of a central server, which coordinates the work, and build agents, the separate machines that actually run the builds. Before an agent can receive work, an administrator usually has to authorize it.
Agents talk to the server over HTTP(S) via the agent polling protocol. Along with each build, the server hands the agent whatever it needs to complete it, which often includes credentials such as deployment keys, cloud tokens and package registry passwords, which makes an authorized agent a very attractive thing to impersonate.
JetBrains did not detail the root cause of the vulnerability, but said it can be exploited by attackers who can reach the TeamCity server over HTTP(S), and that they don’t need a TeamCity user account to do it.“A successful exploitation could displace a legitimate build agent and intercept builds assigned to it. This can expose credentials and other secrets passed to the agent,” JetBrains explained.
This summary is from Help Net Security, published Dec 3, 2026. NewsFusion links to the original reporting and groups related coverage.



.png)

