# JetBrains discloses flaw that could let attackers intercept TeamCity software builds

The company says all self-hosted versions are affected and recommends updating to 2026.1.7, 2026.2.3 or 2026.3 to fix the flaw.

Published 3 December 2026 · Verified as of 3 December 2026 · AveNews · Software

https://www.avenews.am/en/posts/jetbrains-teamcity-build-agent-flaw · [Հայերեն](https://www.avenews.am/hy/posts/jetbrains-teamcity-build-agent-flaw)

> **Summary:** JetBrains has disclosed a flaw in its TeamCity software that could let an attacker intercept software builds without an account. Fixed releases and a patch that requires no server restart are available to affected customers.

JetBrains disclosed a critical flaw in TeamCity, its software for managing software builds, that could let an attacker impersonate an authorized build agent without an account. An agent carries out assigned build work; impersonating one could let an attacker intercept that work and access credentials or alter its output, the company said.[^2]

The flaw, identified as CVE-2026-136858, affects all versions of TeamCity On-Premises, which customers run on their own servers. It has a severity score of 9.1 out of 10 on the CVSS vulnerability scale. JetBrains recommends upgrading to a fixed release: 2026.1.7, 2026.2.3 or 2026.3.[^1][^2]

Security researcher Jiawei Guo privately reported the issue on 24 November 2026. JetBrains disclosed it on 2 December, [The Hacker News](https://thehackernews.com/2026/12/critical-jetbrains-teamcity-flaw-lets.html) said. JetBrains said it was not aware of active exploitation when it published its advisory.[^1][^2]

## What an attacker could do

JetBrains said an attacker who can reach a vulnerable server over the web could displace a legitimate agent and intercept its assigned builds. The attacker could also falsify build results or publish altered build files. Later builds that use those files could run attacker-supplied code.[^2]

The company said it had already applied corrective measures to TeamCity Cloud and found no evidence that a cloud environment had been exploited through this flaw. Cloud customers do not need to act.[^2]

## How administrators can respond

Customers unable to upgrade can install a security patch plugin on TeamCity 2021.2 or later without restarting the server. The plugin fixes this flaw only; JetBrains recommends a full update for other security fixes.[^2]

In Administration \| Updates, administrators using versions 2024.03 through 2026.2.1 can review and apply pending patches. On 2026.2.2 and later, they can enable automatic installation or review downloaded patches, depending on their settings. The plugin can also be installed manually on other supported versions.[^2]

JetBrains says administrators can search the server log for an existing-agent entry with a different, non-empty authorization token, which may indicate an attempted takeover. They should check the agent’s connection history, source address and assigned builds against logs, results and published build files.[^2]

JetBrains also recommends limiting server access to trusted networks and using a VPN or other network access controls if users or agents need to connect from outside those networks. It recommends restricting requests to /app/agents and its subpaths to the network addresses expected for legitimate agents, including outbound addresses used by cloud agents and any NAT gateways they connect through. If administrators suspect exploitation, the company advises preserving logs and build results, patching the server, replacing potentially exposed credentials and treating affected build files as untrusted until verified and tracing where they were used or deployed.[^2]

## References

- [JetBrains](https://www.avenews.am/en/references/jetbrains-q1688472): The software company that disclosed and patched the TeamCity vulnerability.
- [TeamCity](https://www.avenews.am/en/references/teamcity-q4050768): JetBrains' software for building software, whose self-hosted installations are affected by the flaw.

## Sources

[^1]: [Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication](https://thehackernews.com/2026/12/critical-jetbrains-teamcity-flaw-lets.html), The Hacker News, 3 December 2026
[^2]: [Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858): Update to 2026.1.7, 2026.2.3, or 2026.3 Now - The JetBrains Blog](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858), blog.jetbrains.com
