Skip to content
Brief Security & Trust ·

JetBrains warns of critical TeamCity flaw that lets attackers take over build agents

The bug affects every self-hosted TeamCity server and needs no login to exploit, JetBrains said.

In brief
  • JetBrains says CVE-2026-136858 affects every self-hosted TeamCity server and needs no account to exploit. It knows of no active attacks.
  • Leaders should check server exposure, the log line, build credentials and downstream builds. Rotate credentials if a takeover is suspected.

JetBrains said on Wednesday that every self-hosted TeamCity server has a critical flaw, CVE-2026-136858. The Hacker News reported a severity score of 9.1 out of 10. Anyone who can reach the server over the web, with no account, could take the place of a registered build agent, the machine that runs build jobs. Jiawei Guo reported it privately on November 24, 2026. Updating to 2026.1.7, 2026.2.3 or 2026.3 closes the hole.

A build server gives jobs to agents it has registered and relies on them to prove who they are. The log line JetBrains cites, "existing agent, but different authorization token", hints that the server checks a token against the agent's name. That is our reading; JetBrains has not published exploit details. A fake agent would get the jobs meant for the real one, plus their secrets. It could also falsify results or publish altered files. JetBrains knows of no active attacks.

Builds that use an agent's output could run attacker code, so its identity matters. Ask: is our server reachable from the internet? Does teamcity-server.log hold that line with a non-empty token? Which credentials pass through builds? Which later builds use their artifacts? If you suspect a hit, rotate those credentials, treat the artifacts as untrusted, and trace where they went.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: JetBrains.