TeamCity critical flaw lets strangers pose as build agents: fixes and checks
CVE-2026-136858 scores 9.1 and affects every on premises TeamCity until updated. No attacks reported yet. Here are the fixed versions and what to check.

JetBrains has fixed a critical flaw in TeamCity On-Premises, its build server, that lets someone with network access impersonate a legitimate build agent without logging in. The bug is CVE-2026-136858 and scores 9.1 on the CVSS 3.1 scale. Every on-premises version is affected until it is updated. There is no public exploit and no reported attack yet, which gives teams a short window to patch before that changes.
What is confirmed
- An unauthenticated attacker who can reach the TeamCity server over HTTP or HTTPS can pose as an authorized build agent. According to The Hacker News, that can let them intercept builds, reach secrets and tamper with build results and artifacts.
- TeamCity Cloud is not affected. JetBrains says it has no evidence of active exploitation.
- The researcher Jiawei Guo reported the issue privately on November 24. Ostorlab dates JetBrains' advisory and fixes to December 2, and The Hacker News covered it on December 3.
- Ostorlab notes there is no public proof of concept and the flaw was not in CISA's exploited vulnerabilities catalog as of December 3.
Why a build server is a sensitive target
A CI server is where source code, signing keys, cloud credentials and deployment tokens meet. An attacker who poses as an agent does not need to break into your laptops or your cloud account, because the builds hand them the keys. That is why this is rated as critical even though nobody has been seen using it. Artifacts are also a concern: if build output is altered, every system that later installs it inherits the problem.
Fixed versions
| Your branch | Fixed version |
|---|---|
| 2026.3 | 2026.3 |
| 2026.2 | 2026.2.3 |
| 2026.1 | 2026.1.7 |
| 2025.11 and earlier | Upgrade to 2026.3 or install the patch plugin (works from 2021.2) |
What to do
- Upgrade to the fixed version for your branch. JetBrains recommends this route because the releases carry other fixes too.
- If you cannot restart the server, install the plugin named CVE-2026-136858-patch. It fixes only this bug and does not need a restart. Confirm it shows under Administration, then Plugins, because the version number alone will not tell you it is there.
- As an interim step only, limit requests to the agents path at your reverse proxy to the addresses of your real agents, including the outbound addresses of any cloud agents. This reduces exposure but does not stop an attacker who sends from an allowed address.
- Servers on 2026.2.2 or later can turn on automatic security patches, which is worth doing so the next one does not wait for a person.
- Look in teamcity-server.log for the message saying an agent connected with a different authorization token than the existing one. Per Ostorlab, a non empty token on that line is a lead worth checking, while an empty token is expected. For each hit, review that agent's connection history, address, hostname and the builds around the same time.
- If you suspect a break in, keep the logs and build results, patch, rotate every credential passed to the affected builds, and treat their artifacts as untrusted until verified.
What it means for readers in the United States and Mexico
This matters to software teams, agencies and companies with in house development, including the many shops in the United States and in Mexico that run their own CI. Neither source gives a count of exposed servers or a country breakdown, so we do not know how many are reachable from the internet. If you use TeamCity Cloud, there is nothing to do. If you depend on a vendor that ships you software, it is fair to ask whether their build server has been updated.
Sources: The Hacker News, Ostorlab


