Attackers are targeting self-hosted JetBrains TeamCity servers by exploiting a critical authentication-bypass vulnerability that can allow them to impersonate trusted build agents and hijack jobs. Offensive security firm watchTowr said it observed exploit attempts just one day after the disclosure of CVE-2026-136858.
“The watchTowr team is rapidly responding to CVE-2026-136858, a recently disclosed authentication bypass vulnerability affecting JetBrains TeamCity, across our client base,” the security company said.
“Just one day after our initial disclosure, watchTowr Intel is already observing unchecked exploit attempts to take over our build agents.”
TeamCity build agents at risk
TeamCity On-Premises is the self-hosted version of JetBrains’ software build and release automation platform. Developers use it to compile code, run tests and automatically deploy software.
Build agents are worker applications that execute jobs assigned by a TeamCity server. CVE-2026-136858 allows an attacker to impersonate a worker that the server already trusts and accept jobs intended for that agent.
An attacker could use the access to expose credentials supplied to build jobs, submit false build results or return modified output files. Those files could later execute attacker-supplied code if they are used in another build.
According to the researchers, exploiting the vulnerability requires guessing the build agent ID. However, agent IDs typically begin with “1” and are relatively easy to predict, meaning this requirement does not provide a significant barrier.
Updates and mitigations
In a December 2 security bulletin, JetBrains “strongly recommended” that all users update to TeamCity versions 2026.1.7, 2026.2.3 or 2026.3, which address the vulnerability.
All TeamCity On-Premises versions released before these versions are affected.
JetBrains also provides security patch plugins for TeamCity 2021.2 and later. These patches can be installed without restarting the server.
Beginning with version 2026.2.2, TeamCity can install patches automatically when unattended security-patch installation is enabled.
TeamCity Cloud has already received the fix, so cloud customers do not need to take action.
Signs of a possible attack
Although JetBrains’ bulletin says that it has not observed active exploitation of the vulnerability, administrators should check for two indicators of suspicious activity.
The first is an entry in teamcity-server.log showing an existing agent with a different authentication token. The second is the presence of a non-empty token, which could indicate an attempted takeover.
If such a token is found, administrators should examine the related build’s agent connection history, source IP address and timestamp to determine whether the attempt succeeded.
For suspected exploitation, JetBrains recommends preserving logs and build results, patching affected servers, rotating credentials passed to potentially compromised builds and treating artifacts as untrusted until they have been verified.
Administrators can also restrict /app/agents and its subpaths to the expected source IP addresses of legitimate build agents.
Earlier TeamCity attacks
In September 2026, the Cybersecurity and Infrastructure Security Agency (CISA) warned federal agencies that ransomware operators were targeting another JetBrains TeamCity On-Premises vulnerability, CVE-2026-63077. That flaw could allow attackers to execute arbitrary operating system commands on affected systems.
Source: www.bleepingcomputer.com


