JetBrains has disclosed a critical security flaw in its on-premises TeamCity software that could allow unauthenticated attackers to bypass authentication and take control of authorized build agents.
The vulnerability, tracked as CVE-2026-136858 and rated 9.1 on the CVSS scale, impacts all TeamCity On-Premises versions. According to the vendor, an attacker who can reach the TeamCity server over HTTP(S) can impersonate an existing authorized build agent without needing any credentials or user account.
If successfully exploited, the flaw enables attackers to intercept builds assigned to the legitimate agent, access build secrets and credentials, tamper with build results, and publish malicious artifacts. Downstream builds consuming those artifacts could then execute attacker-supplied code, creating serious supply-chain risks for organizations relying on TeamCity for continuous integration and deployment.
JetBrains has released fixes in versions 2026.1.7, 2026.2.3, and 2026.3. For customers unable to restart their servers immediately, a security patch plugin is available for TeamCity 2021.2 and later. TeamCity Cloud users require no action.
As an additional mitigation, organizations are advised to configure their reverse proxy to restrict requests to /app/agents and its subpaths to only the IP addresses of expected legitimate build agents, including outbound addresses used by cloud agents and any NAT gateways.
The company stated there is no evidence of active exploitation of CVE-2026-136858. The flaw was responsibly disclosed by security researcher Jiawei Guo on November 24, 2026. This marks the second critical TeamCity vulnerability in recent months, following CVE-2026-63077 (CVSS 9.8), which was weaponized in real-world attacks according to CISA.


