Critical JetBrains TeamCity flaw is being used in attempts to take over build agents

watchTowr says CVE-2026-136858 in TeamCity On-Premises was used in attempts to take over build agents one day after the flaw was disclosed.

FUFerhat UğurluYazSis TeamPublished: December 4, 20262 min read
In short

According to a BleepingComputer report on December 4, 2026, attackers are trying to use CVE-2026-136858, a critical authentication bypass in JetBrains TeamCity On-Premises, to take over build agents. In a bulletin on December 2, JetBrains advised all users to update their servers.

Attackers are targeting TeamCity On-Premises, the self-hosted edition of JetBrains' build and release automation platform, BleepingComputer reported on December 4, 2026. Security company watchTowr said it began seeing attempts to take over build agents through CVE-2026-136858, a critical authentication bypass, only one day after the flaw was made public.

  • According to JetBrains' bulletin of December 2, the flaw lets an attacker who can reach the server over HTTP(S), without a TeamCity user account, impersonate an authorized build agent. The attacker could intercept builds, read their secrets and tamper with build results and artifacts.
  • All On-Premises versions are affected; the fix is in 2026.1.7, 2026.2.3 and 2026.3. A patch plugin for 2021.2 and later can be installed without restarting the server. TeamCity Cloud has already been fixed.
  • watchTowr says an attack requires guessing a build agent ID, but these IDs usually start at 1 and are easy to predict.
  • JetBrains says teamcity-server.log entries showing a different authorization token for an existing agent may point to a takeover attempt.

Why it matters

Build servers produce the software that companies ship to customers and often hold database, cloud and deployment credentials. For software teams and outsourcing firms in Türkiye that run their own TeamCity server, the flaw carries a risk of leaked secrets and of altered software reaching customers. If exploitation is suspected, JetBrains advises keeping logs and build results, patching the server, rotating credentials passed to possibly affected builds and treating their artifacts as untrusted until verified.

  • Upgrade your TeamCity On-Premises server to 2026.1.7, 2026.2.3 or 2026.3, or install the patch plugin.
  • On 2026.2.2 and later, turn on automatic security patch installation.
  • On your reverse proxy, allow access to /app/agents only from the IP addresses of expected agents.

IT teams that want to track server updates and security requests in one place can see our <a href="/kurumsal-portal/it-destek-help-desk">IT support and help desk</a> page.

Sources

FU
Ferhat Uğurlu · YazSis Team

Builds enterprise software, AI and digital transformation products together with the YazSis team.