Skip to content
Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication

Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication

Ravie LakshmananDec 03, 2026DevOps / Vulnerability

JetBrains on Wednesday disclosed a critical security flaw impacting on-premises versions of TeamCity that could be exploited to bypass authentication and take over authorized build agents.

The vulnerability, tracked as CVE-2026-136858, carries a CVSS score of 9.1 out of a maximum of 10.0.

“If exploited, this vulnerability may allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an existing authorized build agent,” JetBrains said in an alert. “An attacker could intercept builds, access build secrets, and tamper with build results and artifacts.”

“A successful exploitation could displace a legitimate build agent and intercept builds assigned to it. This can expose credentials and other secrets passed to the agent. An attacker could also falsify build results or publish tampered artifacts. Downstream builds that consume those artifacts could execute attacker-supplied code.”

The attacker does not require authentication or a TeamCity user account, the company said.

All TeamCity On-Premises versions are vulnerable to the flaw. It has been patched in versions 2026.1.7, 2026.2.3, and 2026.3.

Customers are recommended to update their servers to one of the patched versions. JetBrains has also made a security patch plugin available for those who are unable to apply the update without restarting the TeamCity server. The plugin is available for TeamCity 2021.2 or later. No action is required for TeamCity Cloud users.

As additional mitigation, the company is advising that users configure their reverse proxy to allow requests to /app/agents and its subpaths only from IP addresses where they expect legitimate build agents to originate. “Include the outbound addresses used by cloud agents and any NAT gateways they connect through,” it noted.

JetBrains also noted that there is no evidence of active exploitation of the flaw. It credited security researcher Jiawei Guo for responsibly disclosing the issue on November 24, 2026.

The disclosure comes nearly four months after another critical vulnerability in the same product (CVE-2026-63077, CVSS score: 9.8), was weaponized in real-world attacks, according to the U.S. Cybersecurity and Infrastructure Security Agency (CISA).

Source link