← All articles

TeamCity vulnerability can hijack build agents without login

TeamCity vulnerability can hijack build agents without login

The TeamCity vulnerability CVE-2026-136858 could let an unauthenticated attacker take over an authorised build agent without a TeamCity account. JetBrains rates the flaw 9.1 out of 10 on the Common Vulnerability Scoring System (CVSS), a scale used to describe the severity of security weaknesses.

The issue affects all on-premises TeamCity versions, meaning TeamCity servers operated on an organisation's own infrastructure rather than through the hosted service. An attacker only needs to be able to reach the TeamCity server over HTTP or HTTPS, the standard protocols used to access web services. JetBrains said the flaw allows the attacker to impersonate an existing authorised build agent.

A build agent is the computer or service that performs software builds and related tasks assigned by TeamCity. By displacing a legitimate agent, an attacker could intercept builds, expose credentials and other secrets passed to that agent, and alter build results. The attacker could also publish tampered software artifacts, which are the files produced by a build. Later builds that use those artifacts could then execute code supplied by the attacker.

The vulnerability does not require authentication, which means the attacker does not need to sign in or possess a TeamCity user account. JetBrains has fixed the issue in TeamCity versions 2026.1.7, 2026.2.3 and 2026.3. Customers using affected on-premises installations are advised to update to one of those versions.

For organisations that cannot update without restarting their TeamCity server, JetBrains has made a security patch plugin available. The plugin supports TeamCity 2021.2 or later. TeamCity Cloud users do not need to take action for this issue, according to JetBrains.

JetBrains also recommends an additional restriction at the reverse proxy, a service that receives web requests before passing approved traffic to an internal server. Organisations should configure it to allow requests to /app/agents and its subpaths only from IP addresses where legitimate build agents are expected to originate. The company said this list should include outbound addresses used by cloud agents and any network address translation (NAT) gateways through which they connect. NAT gateways allow multiple systems to reach the internet through shared external addresses.

JetBrains said there is no evidence that CVE-2026-136858 is being actively exploited. The issue was responsibly disclosed by security researcher Jiawei Guo on November 24, 2026. The disclosure follows another critical TeamCity vulnerability, CVE-2026-63077, which had a CVSS score of 9.8 and was used in real-world attacks, according to the U.S. Cybersecurity and Infrastructure Security Agency (CISA), nearly four months earlier.

Teams responsible for software delivery should treat the TeamCity update as a priority because the affected build process may handle credentials, source code and release files. AEU-I provides security-first IT, infrastructure and consulting for organisations reviewing this kind of infrastructure risk.

Also available in: DeutschItalianoShqip