TeamCity flaw CVE-2026-136858 saw exploit attempts in a day
Key takeaways
- Exploitation attempts against CVE-2026-136858 were seen one day after disclosure, per watchTowr
- Update TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin
- Check teamcity-server.log for the existing-agent, different-authorisation-token line and rotate credentials if a takeover is suspected
- Restrict /app/agents and its subpaths to the IP addresses of legitimate build agents
JetBrains TeamCity On-Premises, the self-hosted continuous integration and delivery (CI/CD) server that compiles, tests and deploys code, has a critical authentication bypass, CVE-2026-136858, and attackers have already tried to exploit it. Offensive security firm watchTowr says it saw attempted in-the-wild exploitation one day after public disclosure, aimed at taking over build agents.
TeamCity is a CI/CD server: the software that builds, tests, packages and often deploys an organisation's code whenever a developer pushes a change. It comes as a JetBrains-hosted service (TeamCity Cloud) and as a self-hosted product (TeamCity On-Premises). An installation has a central server that coordinates work and build agents, the separate machines that run the builds. Before an agent can receive work, an administrator usually has to authorise it, and agents talk to the server over HTTP(S) using the agent polling protocol.
What the flaw allows
JetBrains has not detailed the root cause of the vulnerability. It says the flaw can be exploited by attackers who can reach the TeamCity server over HTTP(S), and that they do not need a TeamCity user account to do so.
Successful exploitation lets an attacker impersonate a worker the server already trusts and receive jobs intended for it. Along with each build, the server hands the agent whatever it needs to complete the job, which often includes credentials such as deployment keys, cloud tokens and package registry passwords. That makes an authorised agent a very attractive thing to impersonate. Per JetBrains, exploitation could displace a legitimate build agent and intercept builds assigned to it, exposing credentials and other secrets passed to the agent.
An attacker could also report false build results or return modified output files that run attacker-supplied code when used in later builds. Help Net Security describes this as opening the door to a software supply chain attack.
watchTowr says exploitation requires guessing a build agent ID, but that is not a real obstacle: the IDs typically start at "1" and are relatively easy to predict.
The response so far
The flaw was privately reported by security researcher Jiawei Guo on 24 November 2026. JetBrains published a bulletin on 2 December "strongly recommending" that all users update to versions 2026.1.7, 2026.2.3 and 2026.3. All TeamCity On-Premises versions before those are affected.
For teams that cannot restart the server straight away, JetBrains offers a security patch plugin for TeamCity 2021.2 and later. It can be installed without restarting the server and fixes only this vulnerability. On 2026.2.2 and later, TeamCity can install the patch unattended if automatic security patch installation is enabled.
TeamCity Cloud has already received the fix, so cloud customers need to take no action. JetBrains says it found no evidence that any TeamCity Cloud environment was exploited through the vulnerability.
JetBrains said at the time of publishing its advisory that it was not aware of active exploitation. watchTowr reported attempted exploitation a day after disclosure.
A second critical flaw in months
This is the second critical, unauthenticated TeamCity flaw JetBrains has fixed in a little over four months. The first, CVE-2026-63077, was patched in late July and added to CISA's Known Exploited Vulnerabilities catalogue roughly a week after disclosure. In September 2026, CISA warned federal agencies that ransomware operators were targeting that vulnerability to execute arbitrary OS commands on targets.
TeamCity On-Premises servers have also previously been targeted by both state-sponsored and financially motivated threat actors, via the authentication bypass flaws CVE-2023-42793 and CVE-2024-27198.
What administrators should do
For IT and security teams running TeamCity On-Premises, the steps from JetBrains are:
- Update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin if a restart is not possible.
- If one appears, check the agent's connection history, source IP and builds around the timestamp to determine whether the attempt succeeded.
- If exploitation is suspected, preserve logs and build results, patch the server, rotate credentials passed to potentially affected builds, and treat their artifacts as untrusted until verified.
- As an additional mitigation, configure a reverse proxy or another path-aware access control to allow requests to /app/agents and its subpaths only from the IP addresses where legitimate build agents are expected to originate, including the outbound addresses used by cloud agents and any NAT gateways.
Anything downstream that consumes build artifacts from an affected server is also worth reviewing, since tampered output files are one of the routes by which attacker-supplied code could spread.
Assessment
For TeamCity On-Premises customers, the immediate priority is to apply the update or the patch plugin and then check logs for signs of a takeover attempt. The flaw needs no TeamCity account, and agent IDs are easy to guess, so reachability of the server over HTTP(S) matters. Restricting access to /app/agents is a sensible additional layer. TeamCity Cloud customers need take no action, because JetBrains has already applied the fix there.
Frequently asked questions
Is TeamCity Cloud affected by CVE-2026-136858?
No action is needed. JetBrains says TeamCity Cloud has already received the fix and it found no evidence any Cloud environment was exploited.
Can the flaw be fixed without restarting the server?
Yes. JetBrains offers a security patch plugin for TeamCity 2021.2 and later that installs without a restart and fixes only this vulnerability.