Hackers are actively targeting JetBrains TeamCity On-Premises installations by exploiting a critical authentication bypass vulnerability tracked as CVE-2026-136858. The attacks aim to hijack build agents and were observed just one day after the flaw was publicly disclosed, according to data from offensive security firm watchTowr.
“The watchTowr team is rapidly reacting to CVE-2026-136858 across our client base, a recently disclosed Authentication Bypass vulnerability affecting JetBrains TeamCity,” the company warned. Exploitation requires guessing a build agent ID, but this presents little difficulty because IDs typically begin at “1” and follow predictable sequences.
TeamCity On-Premises is the self-hosted version of JetBrains’ platform used for software build and release automation. A build agent is the worker component that executes jobs assigned by the TeamCity server. CVE-2026-136858 lets an attacker impersonate a trusted worker, receive assigned jobs, and potentially capture credentials or return tampered build outputs that could execute malicious code in later pipelines.
Fixes and Mitigations
JetBrains published a security bulletin on December 2 strongly recommending immediate updates to versions 2026.1.7, 2026.2.3, and 2026.3. The flaw affects all earlier TeamCity On-Premises releases. A security patch plugin is available for versions 2021.2 and later and can be installed without a server restart. On 2026.2.2 and newer, the patch can be applied automatically when the unattended installation option is enabled. TeamCity Cloud customers are already protected.
Administrators should monitor teamcity-server.log for entries containing the phrase “of the existing agent, but different authorization token”. A non-empty token in such logs may indicate a takeover attempt. If suspicious activity is found, JetBrains advises preserving logs and build artifacts, applying patches, rotating credentials, and treating affected outputs as untrusted. Additional hardening includes restricting access to the /app/agents path and its subpaths to expected source IP addresses of legitimate agents.
In September 2026, CISA warned federal agencies about ransomware operators exploiting another TeamCity On-Premises flaw, CVE-2026-63077, to execute arbitrary commands on target systems.


