Zero Day Room
Live
Vulnerabilities

Critical TeamCity Authentication Bypass Exploited to Hijack Build Agents

A critical authentication bypass vulnerability in JetBrains TeamCity On-Premises (CVE-2026-136858) is being actively exploited, allowing attackers to impersonate trusted build agents without credentials. The flaw, disclosed on December 2, 2026, was targeted in the wild just one day later, posing immediate supply chain risks.

A critical authentication bypass vulnerability in JetBrains TeamCity On-Premises (CVE-2026-136858) is being actively...

A critical authentication bypass vulnerability in JetBrains TeamCity On-Premises is being actively exploited to hijack build agents. Tracked as CVE-2026-136858, the flaw allows attackers to impersonate trusted build agents and receive jobs intended for them without requiring a TeamCity account.

The vulnerability bypasses authentication during build agent registration. It requires only HTTP or HTTPS access to the server and a valid build agent identifier. Agent IDs start at 1, making them guessable for attackers. This enables unauthorized agents to register and intercept work.

Active exploitation observed

Threat actors are actively attempting to exploit the vulnerability in the wild. WatchTowr observed attempted in-the-wild exploitation of CVE-2026-136858 one day after its public disclosure on December 2, 2026. "Only one day after initial disclosure, watchTowr Intel is already observing attempted in-the-wild exploitation, trying to take over build agents," the firm said. JetBrains, however, reported no evidence of active exploitation as of December 2.

Patch available for affected versions

JetBrains provides a security patch plugin for affected versions that can be installed without a server restart. The company published a bulletin on December 2 recommending immediate updates. The flaw affects TeamCity On-Premises versions 2021.2 and later. No TeamCity Cloud environments were exploited, according to the vendor.

The following updates address the vulnerability:

Affected VersionPatched Version
2026.1.x2026.1.7
2026.2.x2026.2.3
2026.3.x2026.3

For versions 2021.2 through 2025.2, a security patch plugin is available. Researcher Jiawei Guo privately reported the flaw on November 24, 2026.

Supply chain and credential risks

Exploitation enables credential exposure, falsified build results, and tampered artifacts that could enable supply chain attacks. CVE-2026-136858 enables three primary outcomes: secret exposure, falsified results, and tampered artifacts. Exposed secrets can include deployment keys, cloud tokens, and registry passwords passed to jobs. Attackers could also return modified output files that execute attacker-supplied code. Tampered artifacts can enable supply chain attacks beyond the compromised TeamCity instance itself.

Mitigation and investigation steps

JetBrains advises preserving logs and build results, patching the server, rotating credentials, and treating artifacts as untrusted if exploitation is suspected. A key mitigation includes restricting network access to the '/app/agents' path and its subpaths to the expected source IPs of legitimate build agents.

Users should check their teamcity-server.log for the specific line 'of the existing agent, but different authorization token <token>'. The presence of a non-empty token may indicate a takeover attempt, while empty tokens represent expected behavior. Patching addresses the authentication bypass but cannot establish whether previous builds were compromised. Security teams should prioritize internet-accessible servers and installations handling sensitive build credentials. Organizations should verify their TeamCity version and apply the security patch immediately.

Related coverage

More from Vulnerabilities