Critical JetBrains TeamCity Flaw Allows Unauthenticated Build Agent Hijacking
A critical vulnerability in on-premises JetBrains TeamCity, CVE-2026-136858, allows unauthenticated attackers to impersonate build agents, intercept builds, and tamper with artifacts.

JetBrains has disclosed a critical security vulnerability affecting on-premises versions of its TeamCity continuous integration and continuous delivery (CI/CD) platform. Tracked as CVE-2026-136858, the flaw carries a high CVSS score of 9.1, indicating a significant risk to affected systems.
The vulnerability allows an unauthenticated attacker who can reach a TeamCity server over HTTP or HTTPS to impersonate an existing, authorized build agent. This means attackers do not need any credentials or a TeamCity user account to exploit the flaw. Once an attacker successfully impersonates a build agent, they can intercept builds, gain access to sensitive build secrets, and tamper with build results and artifacts.
Successful exploitation could lead to a legitimate build agent being displaced, allowing the attacker to intercept its assigned builds. This poses a severe risk as it can expose credentials and other secrets that are passed to the build agent during the CI/CD process. Furthermore, attackers could falsify build results or publish tampered artifacts, which could then be consumed by downstream builds, potentially leading to the execution of attacker-supplied code.
All on-premises versions of JetBrains TeamCity are vulnerable to this critical flaw. JetBrains has addressed the issue by releasing patches in versions 2026.1.7, 2026.2.3, and 2026.3. Customers are strongly advised to update their TeamCity servers to one of these patched versions as soon as possible to mitigate the risk.
For organizations that are unable to restart their TeamCity server immediately to apply the update, JetBrains has also made a security patch plugin available. This plugin can be applied to TeamCity versions 2021.2 or later. Users of TeamCity Cloud are not affected by this vulnerability and require no action.
As an additional mitigation measure, JetBrains recommends configuring reverse proxies to restrict access to the /app/agents path and its subpaths. Access should only be permitted from IP addresses where legitimate build agents are expected to originate. This includes the outbound addresses used by cloud agents and any NAT gateways they connect through.
JetBrains has stated that there is currently no evidence of active exploitation of this vulnerability in the wild. The issue was responsibly disclosed by security researcher Jiawei Guo on November 24, 2026. This disclosure follows closely on the heels of another critical vulnerability in TeamCity (CVE-2026-63077, CVSS 9.8) that was weaponized in real-world attacks earlier this year, highlighting ongoing security concerns with the platform.
This vulnerability underscores the critical importance of securing CI/CD pipelines, which often handle sensitive code, credentials, and intellectual property. Compromise of build agents can have cascading effects, impacting the integrity of software development and deployment processes, and potentially leading to broader system compromises.