Critical TeamCity flaw lets unauthenticated attackers pose as build agents, grab secrets (CVE-2026-136858)
PatchTeamCity On-PremisesTeamCity CloudOur summary
JetBrains has released fixes for a critical, unauthenticated vulnerability (CVE-2026-136858) in TeamCity On-Premises that let attackers impersonate authorized build agents without needing any TeamCity credentials. By reaching the server over HTTP(S), an attacker could displace a genuine agent, hijack the builds assigned to it, and steal the secrets and credentials passed along—such as deployment keys, cloud tokens, and registry passwords—while also tampering with build artifacts to potentially inject malicious code downstream, creating a supply-chain risk. The flaw was reported by researcher Jiawei Guo on November 24, 2026, and JetBrains says it has found no evidence of exploitation against TeamCity Cloud or TeamCity On-Premises so far. Administrators are urged to upgrade to TeamCity 2026.1.7, 2026.2.3, or 2026.3, or apply the available security patch plugin (supporting versions 2021.2 and later) if an immediate restart isn't feasible, and to restrict access to the /app/agents endpoint via reverse-proxy rules while reviewing teamcity-server.log for signs of agent takeover attempts.
Help Net Security publishes this story on its own site; we link to it rather than reprint it.
Worried this affects your company?
Try a free pilot on your internet-facing systems. Scope agreed before testing.
SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.