JetBrains patches critical TeamCity build-agent impersonation flaw

JetBrains has released fixes for CVE-2026-136858, a critical authentication-bypass vulnerability affecting all TeamCity On-Premises versions. The flaw has a CVSS score of 9.1 and could allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an authorised build agent.
The company said successful exploitation could let an attacker displace a legitimate agent and intercept the builds assigned to it. That access may expose credentials and other secrets sent to the agent, enable falsified build results, or permit publication of tampered artifacts.
Build pipeline risk extends to downstream systems
TeamCity is used to coordinate build and delivery tasks, making authorised agents a sensitive part of the software supply chain. JetBrains warned that downstream builds consuming altered artifacts could execute attacker-supplied code. The attacker does not need a TeamCity account or any prior authentication to exploit the issue.
JetBrains said there is no evidence that CVE-2026-136858 has been actively exploited. Security researcher Jiawei Guo responsibly disclosed the vulnerability on November 24, 2026.
The disclosure follows another critical TeamCity issue, CVE-2026-63077, which carried a CVSS score of 9.8. The U.S. Cybersecurity and Infrastructure Security Agency said that earlier vulnerability was weaponised in real-world attacks.
Updates and interim controls
JetBrains fixed the vulnerability in TeamCity versions 2026.1.7, 2026.2.3, and 2026.3. Customers running on-premises servers should update to one of those releases. TeamCity Cloud users do not need to take action.
For organisations unable to apply a full update without restarting the TeamCity server, JetBrains has provided a security patch plugin for TeamCity 2021.2 and later. This offers an alternative path where operational constraints delay a server update.
Reverse-proxy restriction
As an additional mitigation, JetBrains recommends configuring the reverse proxy so that requests to /app/agents and its subpaths are accepted only from IP addresses expected to host legitimate build agents. The allowlist should include outbound addresses for cloud agents and any NAT gateways used for their connections.
Teams operating TeamCity on premises should treat the update as a build-pipeline protection priority, verify which agent networks can reach the exposed endpoint, and apply the documented reverse-proxy restriction while completing remediation.

