CVE-2026-136858: TeamCity On-Premises auth bypass lets attackers hijack build agents, fix is 2026.3
JetBrains fixed a critical TeamCity flaw that lets an unauthenticated attacker impersonate a build agent and reach build secrets; watchTowr reports attempted exploitation.
· 7 min read
Written by AI from the sources linked below. How we use AI
On this page
JetBrains has fixed a critical authentication bypass, CVE-2026-136858, in TeamCity On-Premises, the CI/CD server many teams use to build and ship software. An attacker who can reach the server over HTTP(S) can pose as an existing build agent without any account, which can expose the secrets passed to builds and let them tamper with build results. The security firm watchTowr says it is already seeing attempted exploitation, while JetBrains says it is not aware of any active exploitation. If you run TeamCity On-Premises, update to a fixed version or install the patch plugin today.
Key points
- CVE-2026-136858 is an unauthenticated authentication bypass in TeamCity On-Premises; every On-Premises version is affected, and TeamCity Cloud was already fixed by JetBrains.
- It is fixed in TeamCity 2026.1.7, 2026.2.3 and 2026.3; a security patch plugin covers 2021.2 and later and needs no server restart.
- JetBrains' bulletin is dated 2 December 2026 and credits researcher Jiawei Guo, who reported the flaw privately on 24 November 2026.
- The Hacker News reports a CVSS score of 9.1; JetBrains' own advisory, as we read it, gives no score.
- watchTowr says it saw attempted exploitation on 3 December; JetBrains says it was not aware of active exploitation when it published.
What to do
- Who is affected: anyone running TeamCity On-Premises, any version, with the server reachable over HTTP(S) by an attacker. Cloud customers need to do nothing.
- Fix: update to 2026.1.7, 2026.2.3 or 2026.3 (Administration | Updates, or the automatic update option).
- Can't update yet: install JetBrains' security patch plugin (TeamCity 2021.2 or later, no restart needed). From 2026.2.2 you can set Security patches to "Install automatically"; between 2024.03 and 2026.2.1, apply pending patches under "Available security updates". JetBrains stresses the plugin fixes only this one flaw, so updating is still the goal.
- Reduce exposure now: at your reverse proxy, allow requests to
/app/agentsand its subpaths only from the addresses your real build agents use, including the outbound addresses of cloud agents and any NAT gateways. - Check whether you were targeted: search
teamcity-server.logfor the textof the existing agent, but different authorization token "<token>". A non-empty token may indicate an attempt to take over an agent; an empty token ("") is expected and can be ignored. For any hit, use its timestamp to review that agent's connection history, check the hostname and source IP against what you expect, and compare with build logs, results and artifacts. - If you suspect a takeover: preserve logs and build results, patch, rotate credentials that were passed to the affected builds, and treat artifacts from those builds as untrusted until verified.
What happened
JetBrains published its security bulletin for CVE-2026-136858 on 2 December 2026. It describes a flaw that lets an unauthenticated attacker, who only needs to reach the TeamCity server over HTTP(S), impersonate an existing authorised build agent. From that position the attacker can intercept builds assigned to that agent, read secrets passed to it, and falsify build results or publish tampered artifacts. JetBrains says downstream builds that consume those artifacts could end up running attacker-supplied code.
The company says it has applied the fix to TeamCity Cloud and found no evidence that any Cloud environment was exploited through the bug. It credits security researcher Jiawei Guo, who reported the issue privately on 24 November 2026 under JetBrains' coordinated disclosure policy.
BleepingComputer, which reported on the attacks on 4 December, adds a detail about how easy the attack is: exploitation requires guessing the ID of a build agent, and those IDs typically start at 1. watchTowr wrote that it was "already observing attempted exploitation", and that guessing an active agent ID is not a material barrier because agents start at "1", according to The Hacker News. BleepingComputer describes the attempts as starting one day after disclosure.
The sources do not fully agree on exploitation. JetBrains' bulletin says that when it published, it was not aware of any active exploitation. watchTowr's statement describes attempted exploitation, not confirmed successful compromises, and we have not found a report of a confirmed victim. The two statements can both be true: an attempt is not a successful attack, and a vendor's bulletin reflects what it knew at the time. Treat servers that were reachable from the internet before patching as possibly probed.
Background
TeamCity's server coordinates build agents: the machines that check out code, run builds and tests, and publish artifacts. Agents hold or receive secrets such as signing keys, registry tokens and cloud credentials, so the link between server and agent is a high-value target. A flaw that lets an outsider take an agent's place gives them a seat inside the pipeline.
This is not the first serious TeamCity bug this year. CVE-2026-63077, fixed on 25 July 2026 in 2025.11.7 and 2026.1.3, was an unauthenticated flaw in the agent polling protocol that allowed OS commands to run with the server's privileges. According to BleepingComputer, CISA added it to its Known Exploited Vulnerabilities catalogue on 5 August, JetBrains confirmed exploitation in the wild on 7 August, and CISA later flagged it as used in ransomware campaigns. BleepingComputer also reports that Shadowserver was tracking just over 160 unpatched, internet-exposed servers at that point, down from about 700 right after the fix, and that since October 2023 CISA has added four TeamCity issues to the catalogue, all abused in ransomware attacks. The Hacker News rates that earlier flaw 9.8 on CVSS.
None of this proves the new flaw will follow the same path. CVE-2026-136858 is not, as far as we can find, in the CISA catalogue at the time of writing, and The Hacker News does not mention it there. But the history is why attackers watch TeamCity advisories closely and why a short patch window matters.
How the attack works
Based on JetBrains' description and the reporting, the weakness sits in how the server decides that a connecting agent is who it claims to be. A normal agent presents its identity and an authorisation token. In a successful attack, the server accepts a connection claiming an existing agent's identity without the matching token, and from then on hands that agent's jobs to the attacker's machine.
The log line JetBrains tells you to search for fits this picture: the server notes an agent connecting that is "of the existing agent, but different authorization token". Attempts with an empty token are described as expected, so the useful signal is a non-empty token that does not belong to the agent. The Hacker News relays watchTowr's claim that a successful attack can take as little as two HTTP requests. We have not independently verified that figure.
What an attacker could do next, per JetBrains: read credentials and other secrets passed to jobs, return false results (a green build that was not run, or a red one), and return modified output files. The last is the most dangerous, because a poisoned artifact can travel into later builds and into releases. That is the same supply-chain shape that has made CI servers a favourite target.
What it means
For teams running TeamCity On-Premises: this is a patch-today advisory. Even if you update, take the exposure question seriously: servers reachable from the internet are the realistic targets, and JetBrains' own best-practice advice is to limit access to trusted networks, use a VPN or other access controls for outside agents, and run the server and agents on separate hosts.
For security teams: the investigation work is separate from patching. Patching stops new takeovers but does not tell you whether an agent was impersonated earlier. Searching the server log, comparing agent source IPs and rotating secrets used by builds that ran around any suspicious entry is the sequence JetBrains recommends.
For everyone else who ships software: the pattern repeats across CI platforms. Build systems concentrate secrets and decide what gets released, so their trust boundaries deserve the same scrutiny as production. We covered a related change on another platform in GitHub blocks pull_request_target by default.
What we don't know yet
- Whether any attempted attack has succeeded, and against whom. watchTowr describes attempts; JetBrains had no knowledge of active exploitation when it published.
- The exact CVSS score and vector. The Hacker News reports 9.1; we did not find a score in JetBrains' bulletin.
- Whether the flaw will be added to CISA's Known Exploited Vulnerabilities catalogue.
- Which earlier versions were vulnerable for how long. JetBrains says all On-Premises versions are affected and provides a patch plugin for 2021.2 and later; it does not say what happens on older releases.
- Technical details. JetBrains has not published how the bypass works beyond the description above, and we have not seen a public proof of concept.
What to watch next
- Updates to JetBrains' advisory if it records exploitation, and any change to the 9.1 score.
- Whether CISA lists CVE-2026-136858, which would set a patch deadline for US federal agencies.
- Scanning data on how many internet-exposed TeamCity servers stay unpatched, as Shadowserver tracked after the July flaw.
- Further reports from watchTowr or others on who is attempting the attack.
Sources
- JetBrains TeamCity blog: Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858) (primary source)
- BleepingComputer: Critical JetBrains TeamCity flaw exploited to hijack build agents
- The Hacker News: Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication
- BleepingComputer: CISA says ransomware gangs now exploiting critical TeamCity flaw (background on CVE-2026-63077)
Written by
The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.
Read next
GitHub blocks pull_request_target by default on December 2: brownouts Nov 9 and 16
Public repositories without an Actions event policy will lose the pull_request_target trigger; here is how to check your workflows and what GitHub changed from its earlier date.
audiotale.net team7 min read
CVE-2026-97229: GitLab flaw hit Alpine's server, and patching GitLab alone was not enough
Alpine Linux says an attacker nearly exploited the CVSS 10.0 GitLab bug on its own server; the root cause is in Ruby, so self-built installs also need Ruby 3.3.13, 3.4.12 or 4.0.9.
audiotale.net team9 min read
Railway says attacker may have read customers' environment variables, pauses all builds and deployments
Railway disclosed on 21 October 2026 that encrypted environment variables, and for some the decrypted API keys and database credentials, may have been accessed; it urges all customers to roll their secrets.
audiotale.net team8 min read