JetBrains fixes critical TeamCity flaw that lets attackers impersonate build agents
All on-premises versions are affected. JetBrains says it is not aware of active exploitation and urges customers to update to 2026.1.7, 2026.2.3 or 2026.3.

In a security advisory, JetBrains said it has patched a critical authentication bypass in TeamCity On-Premises, tracked as CVE-2026-136858, with fixes in versions 2026.1.7, 2026.2.3 and 2026.3. The flaw affects all on-premises versions and lets an unauthenticated attacker who can reach the server over HTTP(S) impersonate an existing authorized build agent, according to the advisory. Meteora Web reported a CVSS score of 9.1 for the issue.
If exploited, the flaw could allow an attacker to intercept builds and expose the credentials and secrets sent to the agent, according to the advisory. The attacker could also alter build results or publish tampered artifacts, and builds that use those artifacts downstream could run attacker-supplied code. JetBrains said no TeamCity user account is required to carry out the attack.
TeamCity is a CI/CD server that manages build agents, which run builds and get what they need to finish. Help Net Security explained that agents routinely receive credentials such as deployment keys, cloud tokens and package registry passwords, so impersonating one is valuable.
The flaw is fixed in TeamCity 2026.1.7, 2026.2.3 and 2026.3. Customers who cannot update right away can use a security patch plugin for TeamCity 2021.2 and later that installs without a server restart. Versions 2026.2.2 and later with automatic security patch installation enabled should check for and install the patch automatically. TeamCity Cloud customers do not need to act, because JetBrains applied corrective measures there and found no evidence of exploitation.
Security researcher Jiawei Guo reported the issue to JetBrains on November 24, 2026. When the advisory was published, JetBrains said it was unaware of any active exploitation. As an additional safeguard, JetBrains recommends restricting /app/agents and its subpaths to IP addresses of expected build agents via a reverse proxy or other path-aware access control, including cloud agent and NAT gateway addresses.
Administrators should update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin and limit /app/agents access to trusted IPs. To check for exploits, search teamcity-server.log for the text "of the existing agent, but different authorization token". If the token is not empty, that could signal a takeover attempt, but an empty token is normal. If a non-empty token appears, the company advises reviewing the agent's connection history and builds around that time and, if exploitation is suspected, rotating credentials and treating artifacts as untrusted.
Sources: The JetBrains Blog, Help Net Security, Meteora Web
Lena Vasquez covers vulnerabilities, breaches and identity for Five Nines. She writes from advisories, vendor bulletins and published reporting.
Corrections. Report an error to corrections@thefivenines.com. We list substantive corrections on the corrections page.