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).
Update
In a post shared on X, watchTowr said it's "already observing attempted exploitation of the latest JetBrains TeamCity Authentication Bypass, tracked as CVE-2026-136858," adding "exploitation requires the successful guess of an active build agent ID, but it's not a material barrier, as agents start at '1.'"
"Successful exploitation allows an attacker to impersonate and take control over a build agent in as little as two HTTP requests, allowing them to intercept and see its builds, and secrets," watchTowr head of threat intelligence, Jake Knott, said in a statement.
"The attackers we've captured so far trying their luck are trying to guess the ID numbers of long-running and commonly numbered build agents, which is the only real prerequisite for exploitation, and it’s not particularly hard, as they start at '1' and go upwards."
The same attacker has been previously linked to successful exploitation of the PHP2Shell vulnerabilities against a Palo Alto Networks PAN-OS device in watchTowr's honeypot network, indicating that the attacker is going after high-impact vulnerabilities.
"We recommend organizations update to the latest version where possible, or apply the security patch plugin released by JetBrains," Knott added. "If patching is not possible, restricting access to the '/app/agents/' endpoints is an effective mitigation."




