Critical TeamCity Vulnerability Lets Attackers Hijack Build Agents

A severe security flaw has been discovered in the on-premises editions of TeamCity that could allow attackers to take control of build agents without needing any authentication. The issue, identified as CVE-2026-136858, carries a serious CVSS rating of 9.1 out of 10, reflecting the high risk posed should the vulnerability be exploited.

The Nature of the Threat

This vulnerability enables an unauthenticated attacker—anyone who can access a TeamCity server over HTTP or HTTPS—to spoof or impersonate a valid build agent. Once impersonated, the attacker could intercept ongoing builds, access sensitive secrets (such as credentials), and manipulate build outputs or artifacts. Subsequent builds that rely on these compromised artifacts may unknowingly execute malicious code.

No user login or existing TeamCity credentials are required to exploit this issue, which puts organizations with TeamCity instances on-premises at risk. Cloud instances are not affected and require no action.

Patch, Mitigation, and Disclosure

JetBrains has released fixed versions—2026.1.7, 2026.2.3, and 2026.3—that address the vulnerability. For those unable to immediately upgrade, a security patch plugin is available for TeamCity versions 2021.2 or later, allowing fixes without restarting the server.

As additional mitigation, administrators are advised to configure their reverse proxy servers so that requests to /app/agents and its subpaths are limited in origin to known IP addresses of legitimate build agents. This should include any outbound addresses associated with cloud agents and NAT gateways where relevant.

According to JetBrains, there is no indication that this vulnerability has yet been exploited in the wild. The bug was responsibly disclosed by security researcher Jiawei Guo on November 24, 2026.

This disclosure comes on the heels of an earlier critical inconsistency in TeamCity (CVE-2026-63077, CVSS 9.8) that had been observed being actively exploited. This recent finding reinforces concerns about CI/CD supply chain attack vectors for organizations relying on build and deployment pipelines.