Critical TeamCity Flaw Lets Unauthenticated Attackers Impersonate Build Agents
JetBrains has disclosed a critical vulnerability affecting on-premises versions of its TeamCity build server. Tracked as CVE-2026-136858 and rated 9.1 out of 10 on the CVSS scale, the flaw could let an attacker bypass authentication and take over authorised build agents.
According to JetBrains, an unauthenticated attacker who can reach a TeamCity server over HTTP(S) could impersonate an existing authorised build agent. No user account is needed. The company warns that an attacker could displace a legitimate agent and intercept the builds assigned to it, exposing credentials and other secrets passed to the agent. They could also falsify build results or publish tampered artifacts, and downstream builds that consume those artifacts could end up running attacker-supplied code.
All TeamCity On-Premises versions are affected. The fix is in versions 2026.1.7, 2026.2.3 and 2026.3. For teams that cannot restart their server straight away, JetBrains offers a security patch plugin for TeamCity 2021.2 or later. TeamCity Cloud customers do not need to act. As an extra safeguard, JetBrains advises configuring the reverse proxy so requests to /app/agents and its subpaths are accepted only from IP addresses where legitimate build agents are expected to originate, including the outbound addresses of cloud agents and any NAT gateways they use.
JetBrains says there is no evidence of active exploitation. Security researcher Jiawei Guo reported the issue responsibly on November 24, 2026. The disclosure follows another critical TeamCity vulnerability, CVE-2026-63077 (CVSS 9.8), which CISA says was exploited in real-world attacks nearly four months earlier.
Why it matters
Build servers sit upstream of everything a business ships, so a flaw that lets an outsider pose as a trusted agent undermines the assumption that build secrets and artifacts are safe inside the pipeline. Any organisation with an internet-reachable on-premises TeamCity server is exposed, and a tampered artifact could spread attacker code to downstream builds. With a previous critical TeamCity bug already exploited in the wild, waiting for evidence of attacks is a risky decision.
What to do
- Update on-premises TeamCity servers to version 2026.1.7, 2026.2.3 or 2026.3.
- Install the JetBrains security patch plugin on TeamCity 2021.2 or later if you cannot restart the server yet.
- Restrict reverse proxy access to /app/agents and its subpaths to expected build agent IP addresses, including cloud agent and NAT gateway addresses.
- Review recent builds for unexpected agent behaviour and consider rotating secrets passed to build agents.