Hackers Are Exploiting a Critical JetBrains TeamCity Flaw to Hijack Build Agents
Hackers are exploiting a critical JetBrains TeamCity flaw to hijack build agents, the worker machines that compile and test software, according to security researchers who observed attacks within a day of the vulnerability being disclosed. The flaw, tracked as CVE-2026-136858, affects TeamCity On-Premises, the self-hosted edition of JetBrains’ build and release automation platform. JetBrains published fixed versions on 2 December 2026, and exploitation attempts were reported the following day.
The danger is not a defaced web page or a stolen password list. A build agent sits inside the software supply chain, handling source code, credentials passed to build jobs and the finished artifacts that customers eventually install. An attacker who can impersonate a trusted agent can intercept builds, access build secrets and tamper with results, which is why a flaw in a developer tool quickly becomes a risk for everyone downstream of that developer.
JetBrains said at disclosure that it had no evidence of active exploitation, while the security firm watchTowr reported attempted exploitation against its honeypot network on 3 December. No successful compromise of a named organisation has been publicly confirmed, and that detail remains unconfirmed. Even so, the speed of the attempts leaves administrators of internet-facing TeamCity servers with a simple priority: patch first, then check the logs.
Key takeaways
- CVE-2026-136858 is a critical authentication bypass in JetBrains TeamCity On-Premises, rated CVSS 9.1, disclosed on 2 December 2026.
- It lets an unauthenticated attacker who can reach the server impersonate an existing authorised build agent and receive its jobs.
- watchTowr reported attempted exploitation one day after disclosure; JetBrains initially said it had seen no active exploitation.
- Fixed versions are 2026.1.7, 2026.2.3 and 2026.3, with a security patch plugin for TeamCity 2021.2 and later; TeamCity Cloud is already fixed.
- Administrators should check teamcity-server.log for mismatched agent authorisation tokens and rotate any secrets that may have been exposed.
What the TeamCity flaw allows
TeamCity coordinates the work of building software. A central server holds project configuration, queues jobs and assigns them to build agents, which check out code, compile it, run tests and return artifacts. Because agents are trusted workers, the server passes them sensitive material: repository credentials, signing keys, cloud tokens and environment variables that a build needs to succeed. That trust is exactly what this vulnerability abuses.
JetBrains described CVE-2026-136858 as a critical vulnerability in TeamCity On-Premises that may allow an unauthenticated attacker who can reach a TeamCity server over HTTP or HTTPS to impersonate an existing authorised build agent. The attacker does not need a TeamCity account. Once accepted as the agent, they can displace the legitimate worker and intercept builds assigned to it, access the secrets those builds carry, and tamper with build results and artifacts.
Why impersonation is worse than a simple break-in
A hijacked build agent does not merely expose one machine. It can report false results, making a failing or altered build look clean, and it can return modified output files that later steps may sign, publish or deploy. In supply-chain terms, that is the difference between stealing from a warehouse and quietly changing what the factory ships. Customers who install the resulting software have no obvious reason to distrust it, because it arrived through the normal release channel.
Researchers noted one practical prerequisite: exploitation requires guessing the identifier of an active build agent. watchTowr said that is not a material barrier, because agent IDs start at 1 and rise from there, so long-running installations tend to use predictable, commonly numbered agents. In other words, the one secret an attacker needs is not really secret at all, which helps explain the CVSS score of 9.1 out of 10 and the urgency in the vendor’s advice.
How quickly exploitation followed disclosure
The timeline is compressed. Security researcher Jiawei Guo reported the issue privately to JetBrains on 24 November 2026. On 2 December, JetBrains published its bulletin, fixed versions and a patch plugin, strongly recommending that all users update. At that point the company said it was not aware of active exploitation and had found no evidence that any TeamCity Cloud environment was exploited.

One day later, watchTowr said its Attacker Eye honeypot network was already observing attempted exploitation of the authentication bypass, with attackers trying to take over build agents. The firm said attackers appeared to have reverse-engineered the patch, reproduced the flaw and tested it against honeypots, guessing at the ID numbers of established agents. BleepingComputer and other security outlets reported the same sequence, and the head of threat intelligence at watchTowr was quoted saying successful exploitation could take as little as two HTTP requests.
Attempts are not confirmed compromises
Precision matters here. Attempted exploitation against honeypots, which exist to attract attackers, is not the same as a confirmed breach of a real company. As of the reporting in the days after disclosure, no victims had been publicly named and no successful attack on a production server had been confirmed. That status could change as administrators review logs, and it should be treated as unconfirmed rather than reassuring.
The pattern, however, is familiar and unwelcome. This is not the first critical TeamCity flaw to attract rapid abuse: an earlier vulnerability, CVE-2026-63077, with a CVSS score of 9.8, was patched in 2026 and later added to the United States Cybersecurity and Infrastructure Security Agency’s known exploited vulnerabilities catalogue after ransomware operators targeted it, with a warning to federal agencies in September 2026. Attackers clearly watch this product, which raises the cost of leaving a server unpatched while a maintenance window is debated. Readers who followed the PLC2Shell industrial controllers flaw will recognise how quickly disclosure can turn into scanning and exploitation attempts.
Which versions are affected and what fixes them
All TeamCity On-Premises versions before the fixed releases are vulnerable, according to JetBrains. The company strongly recommended updating to version 2026.1.7, 2026.2.3 or 2026.3, depending on the branch in use. TeamCity Cloud has already received the fix, so cloud customers need to take no action, and JetBrains said it found no evidence that cloud environments were exploited.
For organisations that cannot upgrade immediately, JetBrains released a security patch plugin for TeamCity 2021.2 and later. The plugin addresses this specific vulnerability and can be installed without restarting the TeamCity server, which removes one common excuse for delay. On version 2026.2.2 and later, the patch can even install unattended if automatic security patch installation is enabled. The plugin is a stopgap for this flaw rather than a substitute for a full upgrade, but it is far better than waiting.
| Deployment | Status | Action |
|---|---|---|
| TeamCity On-Premises before the fixed versions | Vulnerable to CVE-2026-136858 | Update to 2026.1.7, 2026.2.3 or 2026.3 |
| TeamCity 2021.2 and later, unable to upgrade now | Vulnerable until patched | Install the security patch plugin, no restart required |
| TeamCity Cloud | Already fixed by JetBrains | No action needed |
How administrators can check for trouble
Patching closes the door, but it does not answer whether anyone already walked through it. JetBrains pointed defenders to the teamcity-server.log file and two signs of suspicious activity. The first is a log entry indicating that an existing agent presented a different authorisation token. The second is the presence of a non-empty token in that context, which may indicate a takeover attempt rather than a routine reconnection.
What to do if the log looks wrong
If such entries appear, JetBrains advises checking the agent’s connection history, source IP address and the builds running around the timestamp to judge whether an attempt succeeded. Where exploitation is suspected, the recommended response is to preserve logs and build results, patch the server, rotate credentials passed to potentially affected builds, and treat artifacts from the suspect period as untrusted until they can be verified. That last step is painful but necessary: an artifact produced while an impostor agent was connected cannot be trusted just because its version number looks right.
Network restrictions add another layer. JetBrains suggested configuring the reverse proxy so that requests to the agents path and its subpaths are allowed only from IP addresses where legitimate build agents are expected to originate. That control does not fix the flaw, but it shrinks the set of machines that can even attempt the impersonation, and it is good hygiene for any build server that does not need to be reachable from the whole internet. The same defensive mindset appears in coverage of the React2Keys credential theft campaign, where exposed developer infrastructure became the route to much larger prizes.
Why build systems keep attracting attackers
Continuous integration and delivery systems concentrate value in one place. They hold credentials for source repositories, package registries, cloud accounts and signing infrastructure, and they run code automatically, often with broad permissions. A single compromised agent can therefore offer both secrets to steal and a trusted channel for delivering altered software. For an attacker, that combination is more valuable than access to an ordinary workstation.
Lessons that outlast this one flaw
Several habits reduce the blast radius next time. Keep build servers off the public internet where possible, or restrict agent paths to known addresses. Give build jobs short-lived, narrowly scoped credentials instead of long-lived master keys, so a stolen secret expires quickly and opens little. Separate signing from building, so a compromised agent cannot produce a fully trusted release on its own. And keep logs long enough to investigate, because a flaw disclosed in December may require reviewing connections from weeks earlier. Tools that scan for known weaknesses also help, which is why many teams keep a vulnerability scanner in their regular toolkit alongside patch management.
Frequently asked questions
What is CVE-2026-136858?
It is a critical authentication bypass in JetBrains TeamCity On-Premises, rated CVSS 9.1, that lets an unauthenticated attacker who can reach the server impersonate an existing authorised build agent, intercept its builds, access build secrets and tamper with results and artifacts.
Has the flaw been exploited against real companies?
Attempted exploitation was observed against watchTowr honeypots on 3 December 2026, one day after disclosure. JetBrains initially reported no evidence of active exploitation, and no successful compromise of a named organisation has been publicly confirmed, so real-world impact remains unconfirmed.
Which TeamCity versions should administrators install?
JetBrains recommends updating to 2026.1.7, 2026.2.3 or 2026.3. If an immediate upgrade is not possible, a security patch plugin is available for TeamCity 2021.2 and later and can be installed without restarting the server. TeamCity Cloud is already fixed.
How can a team check whether its agents were impersonated?
Search teamcity-server.log for entries showing an existing agent presenting a different authorisation token, especially with a non-empty token. If found, review the agent’s connection history, source IP and builds around that time, preserve logs, patch, rotate exposed credentials and treat suspect artifacts as untrusted.
The bottom line
A critical flaw in a widely used build platform, exploited in attempts within a day of disclosure, is about as clear a patching signal as administrators ever get. The fix is available, the stopgap plugin needs no restart, and the log checks are specific enough to run today. Leaving an internet-facing TeamCity On-Premises server unpatched after this warning would be difficult to justify to customers whose software passes through it.
The deeper lesson is about trust in automation. Build agents are trusted workers holding secrets and shaping releases, so impersonating one is a supply-chain attack, not a minor server bug. Teams that patch quickly, restrict who can reach their agents and scope build credentials tightly will be far better placed when the next disclosure lands.


