Skip to content
Our open-source security work.See the research

Blogvulnerabilities

3 Dec 2026

A TeamCity server should not hand your builds to a stranger.

2 min read

On 2 December 2026 JetBrains disclosed CVE-2026-136858, a critical flaw in TeamCity On-Premises that lets an unauthenticated attacker impersonate an existing build agent. A build agent sees the secrets passed to its builds and produces the artifacts that ship, so a stranger in that seat sits right inside the software supply chain.

What happened

JetBrains says an attacker who can reach a TeamCity server over HTTP(S) can take the place of an authorised build agent. No TeamCity account is needed. From there the attacker can intercept builds assigned to that agent, read the credentials passed to them and falsify build results.

The advisory also warns that the attacker could publish tampered artifacts, and downstream builds that consume them could run attacker-supplied code. A researcher reported the issue privately on 24 November. JetBrains says it is not aware of active exploitation, and has found no sign of exploitation in TeamCity Cloud, which it has already fixed.

The urgency comes from the product's history. The Hacker News notes that an earlier critical TeamCity flaw was used in real attacks this year.

Who is affected

Any team running its own TeamCity server should treat this as urgent. Build agents often receive the credentials used to publish packages and deploy to production, so an attacker in that seat can reach well beyond the build itself.

  • Every TeamCity On-Premises version before the fixed releases.
  • Servers reachable over HTTP(S).
  • TeamCity Cloud customers need to do nothing.

What to do

  • Update to 2026.1.7, 2026.2.3 or 2026.3.
  • If you cannot update now, install the security patch plugin, available for 2021.2 and later without a restart.
  • Restrict /app/agents and its subpaths at your reverse proxy to the addresses your agents connect from, including cloud agents and NAT gateways.
  • Search teamcity-server.log for of the existing agent, but different authorization token. An entry with a non-empty token may be a takeover attempt.
  • If you find one, preserve logs, rotate credentials passed to affected builds and treat their artifacts as untrusted until verified.

The build server holds the keys to everything it ships, so it deserves the same exposure limits as production.

Filed under: vulnerabilities