Trending: On-device modelsSearch
iHeartGeek
iTECH

Critical TeamCity flaw lets attackers hijack build agents

CVE-2026-136858 lets unauthenticated attackers impersonate TeamCity build agents, exposing secrets and tampering with build artefacts.

TeamCity logo representing the JetBrains CI/CD platform affected by CVE-2026-136858

JetBrains has disclosed a critical security flaw in TeamCity On-Premises that lets an unauthenticated attacker impersonate an authorised build agent. The vulnerability, CVE-2026-136858, carries a CVSS score of 9.1 and affects every TeamCity On-Premises version, according to the company’s advisory.1

What the flaw lets attackers do

An attacker who can reach a TeamCity server over HTTP or HTTPS does not need a TeamCity account. By impersonating an existing authorised build agent, they could intercept builds, access secrets passed to those builds, falsify build results or publish tampered artefacts.1 Downstream builds that consume those artefacts could then execute attacker-supplied code.

JetBrains says it has found no evidence of active exploitation at the time of its disclosure. The company credits security researcher Jiawei Guo with reporting the issue privately on 24 November 2026.1

The risk is concentrated in self-hosted installations. TeamCity Cloud customers do not need to take action because JetBrains says the necessary corrective measures have already been applied to the service.1

How to fix TeamCity

The permanent fix is to update TeamCity On-Premises to version 2026.1.7, 2026.2.3 or 2026.3. Administrators who cannot restart immediately can install JetBrains’ security patch plugin on TeamCity 2021.2 and later.1

JetBrains also recommends enabling automatic security-patch installation where it is available. As an additional mitigation, administrators should restrict requests to `/app/agents` and its subpaths at the reverse proxy so that only expected build-agent addresses can reach them.1

Teams checking for attempted exploitation should search `teamcity-server.log` for entries containing `of the existing agent, but different authorization token`. JetBrains says a non-empty token may indicate an attempted takeover, while an empty token is expected for ordinary activity.1

The National Vulnerability Database records the same authentication-bypass issue and lists the fixed-version boundary for affected TeamCity releases.2 The practical takeaway is straightforward: exposed on-premises servers should be patched before an attacker gets the chance to turn a build agent into a route to credentials and production artefacts.

Our opinion

This is exactly the sort of vulnerability that deserves prompt, unglamorous maintenance. Build agents sit close to source code, credentials and release pipelines, so an authentication bypass in their registration flow can have consequences far beyond one compromised server. JetBrains has supplied fixed releases, a plugin for installations that cannot restart and a useful log pattern for investigation. Teams running TeamCity On-Premises should treat the update as a priority, then review agent access and rotate any credentials exposed to suspicious builds.