JetBrains disclosed a critical vulnerability in TeamCity On-Premises, its self-hosted CI/CD server, on Wednesday, Dec 2. Tracked as CVE-2026-136858, it lets an attacker with no TeamCity account who can reach the server over HTTP(S) impersonate an existing authorized build agent. From there the attacker could intercept builds, read the credentials and other secrets passed to that agent, and falsify build results or publish tampered artifacts that downstream builds may then run.1

JetBrains says all On-Premises versions are affected. The fix is in 2026.1.7, 2026.2.3 and 2026.3, and a security patch plugin covers 2021.2 and later for servers that can't be upgraded yet; it installs without a restart. Servers on 2026.2.2 or later with automatic security patches turned on should pick it up on their own. TeamCity Cloud needs no action. A researcher, Jiawei Guo, reported the flaw privately on Nov 24.1

This is a TeamCity server issue, not one in the IDEs our JetBrains review covers, and the review's grade doesn't change.

Vendor claims

JetBrains says it has already fixed TeamCity Cloud, found no evidence that any Cloud environment was exploited, and was not aware of active exploitation when it published the advisory.1

What to do

  1. Update the server to 2026.1.7, 2026.2.3 or 2026.3. If you can't, install the CVE-2026-136858 security patch plugin, and on 2026.2.2 or later set security patches to install automatically.1
  2. Search teamcity-server.log for “of the existing agent, but different authorization token” followed by a non-empty token. Entries with an empty token are expected. For any hit, check that agent's connection history, hostname and source IP against the builds it ran around that time.1
  3. If you suspect a takeover, keep the logs, patch, rotate every credential passed to the affected builds, and treat their artifacts as untrusted until verified.1
  4. Allow requests to /app/agents and its subpaths only from the addresses your agents use, including cloud agents and NAT gateways, and keep the server on trusted networks or behind a VPN.1

Sources

  1. JetBrains — Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858): Update to 2026.1.7, 2026.2.3, or 2026.3 Now (Dec 2, 2026) — accessed Dec 3, 2026; official advisory

Corrections: none so far. We fix errors in the open, note them here and on the corrections log. Spotted one? Email editors@software-lifecycle.com.