JetBrains has released fixes for a critical vulnerability in TeamCity On-Premises that lets an unauthenticated attacker impersonate an existing, authorized build agent. The flaw, tracked as CVE-2026-136858, carries a CVSS score of 9.1 and affects all versions of the self-hosted product.
How CVE-2026-136858 Lets Attackers Pose as Build Agents
An attacker who can reach a TeamCity server over HTTP or HTTPS can exploit the flaw without credentials. By impersonating a build agent that the server already trusts, the attacker sits in the middle of the build process, where the server hands out work and agents return results.
JetBrains alerted customers on Dec. 2. Security researcher Jiawei Guo reported the problem on Nov. 24, giving the company roughly a week between responsible disclosure and the patched releases.
Build Secrets, Falsified Results and Tampered Artifacts
The consequences listed in the advisory are broad. An attacker posing as an agent can intercept builds and access secrets and credentials that the server passes to agents. The attacker can also falsify build results and publish tampered artifacts.
Downstream builds that consume those artifacts could then run attacker-supplied code, extending a single compromised pipeline into other projects. That is the pattern that makes build servers a recurring concern for software supply-chain security.
Fixed Releases and the Optional Security Patch Plugin
JetBrains fixed the flaw in TeamCity 2026.1.7, 2026.2.3 and 2026.3. TeamCity Cloud customers need to take no action, according to the vendor, because the problem applies to On-Premises installations.
For organizations that cannot restart their servers right away, JetBrains offers a security patch plugin that works with TeamCity 2021.2 or later.
Reverse-Proxy Restrictions on the /app/agents Path
JetBrains also described a mitigation that works at the network layer. Administrators can restrict the /app/agents path and its subpaths at the reverse proxy so that only expected agent IP addresses can reach them. The list needs to include egress addresses for cloud agents and NAT gateways, which can differ from the addresses of the machines that run the agents.
Exploitation Status and the Earlier Critical TeamCity Bug
JetBrains says it has seen no evidence of active exploitation of CVE-2026-136858. That distinguishes it from a previous critical TeamCity flaw, CVE-2026-63077, which scored 9.8 and which the Cybersecurity and Infrastructure Security Agency said was exploited in real attacks nearly four months ago.
The earlier case matters because attackers have already shown interest in TeamCity servers as a way into software build environments. A server that sits on the internet and holds credentials for deployment targets, code repositories and artifact stores is a concentrated source of access.
Scope of Exposure for Internet-Reachable On-Premises Servers
The exposure is greatest for on-premises servers reachable from the internet, since the attack requires only network access to the server. Because the flaw affects every On-Premises version, no earlier release line falls outside its scope.
The risk is also indirect. A tampered artifact does not have to harm the organization running the TeamCity server. Anyone who consumes what that server builds, including customers and downstream projects, could receive the attacker’s code. JetBrains has not reported any such incident, and no exploitation has been confirmed.
Patched Versions Are Available Across Supported Release Lines
The patched releases and the plugin together cover the supported lines as well as older installations back to 2021.2. Administrators running TeamCity On-Premises can verify their build numbers against the three fixed versions, and cloud customers are already covered by the vendor’s own deployment.
JetBrains’ advisory frames the risk around trust. A TeamCity server hands work to agents and accepts artifacts back from them, so an attacker who passes as an agent is treated by the server as a legitimate participant. The company separates its products clearly: TeamCity Cloud needs no action, while On-Premises administrators choose between the three fixed releases and the plugin for 2021.2 and later.
