---
title: "JetBrains patches critical TeamCity flaw that lets attackers hijack build agents"
description: "JetBrains has fixed an unauthenticated build-agent impersonation flaw in TeamCity On-Premises."
url: "https://shadowmap.com/threat-intel/jetbrains-teamcity-build-agent-hijack-flaw/"
---

[All incident reports](https://shadowmap.com/threat-intel/) 

 Incident report 

#  JetBrains patches critical TeamCity flaw that lets attackers hijack build agents 

 JetBrains has fixed an unauthenticated build-agent impersonation flaw in TeamCity On-Premises. A successful attack could expose build secrets and taint artefacts; no active exploitation was known at disclosure. Fixed releases and a patch plugin are available. 

[ShadowMap Research](https://shadowmap.com/threat-intel/about/)  · First published 3 Dec 2026, 12:14 IST  · Last updated 3 Dec 2026, 14:27 IST 

## The short version

- **The flaw.** CVE-2026-136858 carries a CVSS score of 9.1 and affects on-premises TeamCity. An attacker who can reach the server over HTTP(S) needs no account or credentials to impersonate an existing authorised build agent.
- **What an attacker could do.** JetBrains says an intruder could displace a legitimate agent, intercept its builds and read the secrets passed to it, then falsify results or publish tampered artefacts. Downstream builds that consume those artefacts could run attacker-supplied code.
- **Who is affected.** _TeamCity On-Premises_ installations need a fixed release or the security patch. Fixes are available in 2026.1.7, 2026.2.3 and 2026.3\. JetBrains has already applied corrective measures to _TeamCity Cloud_; hosted customers need take no action.
- **Exploitation status.** JetBrains says it has no evidence of active exploitation. The company credits researcher _Jiawei Guo_ with responsibly disclosing the issue on 24 November 2026.

## Timeline

| Date   | Event                                                                                             |
| ------ | ------------------------------------------------------------------------------------------------- |
| 24 Nov | _Researcher Jiawei Guo_ responsibly discloses the flaw to JetBrains.                              |
| 3 Dec  | The disclosure is reported publicly, with patched TeamCity releases and a patch plugin available. |

## How the attack works

The flaw lets an unauthenticated attacker who can reach a TeamCity server over HTTP(S) impersonate an existing authorised build agent. _No TeamCity_ user account is needed.

Once accepted, the impostor can take the place of a real agent and receive the work meant for it. Builds can carry credentials and other secrets, which would then be exposed. Tampered artefacts are the second risk: anything built downstream from them could execute code the attacker supplied.

## Who is affected and what JetBrains advises

JetBrains lists fixes in TeamCity 2026.1.7, 2026.2.3 and 2026.3\. The security patch plugin supports 2021.2 and later and can be installed without a server restart. _TeamCity Cloud_ has already received corrective measures; hosted customers need take no action.

As an extra measure, JetBrains suggests restricting the /app/agents path and its subpaths at the reverse proxy so that only expected build-agent addresses can reach it, including the outbound addresses of cloud agents and any NAT gateways they use.

The disclosure comes nearly four months after a different critical TeamCity flaw, CVE-2026-63077, with a CVSS score of 9.8, was used in real-world attacks according to CISA. The source does not say the two issues are otherwise connected.

## Analysis

The vulnerable trust boundary is the build worker's identity. An impostor accepted as an authorised agent can receive work intended for that agent, including secrets supplied to the build. This creates a route to credentials and altered outputs without first obtaining a TeamCity user account. The exposed secrets and potential downstream impact depend on the builds assigned to that agent; the disclosure does not establish a compromise at any particular organisation.

Patching closes the disclosed authentication bypass, but does not establish that earlier builds were trustworthy. If exploitation is suspected, the relevant scope is the affected agent's assigned builds and the artefacts they produced. JetBrains describes both secret exposure and tampered outputs as possible consequences: credential review and artefact verification address different parts of that risk.

Restricting the agent endpoint must account for where legitimate workers connect from, including cloud egress and NAT addresses. An over-broad allowlist leaves the vulnerable endpoint reachable; an incomplete one can interrupt legitimate builds. Keep this reachability control alongside the fixed release or plugin. There was no known active exploitation at disclosure, so this is a vulnerability response, not evidence that build pipelines have already been breached.

## What is not known yet

- Whether anyone has tried to exploit CVE-2026-136858 since the patch appeared, and whether any server has been compromised.
- Whether build secrets or artefacts have been taken from any organisation.
- How many TeamCity servers are reachable over HTTP(S) from untrusted networks.

## What to do

### If you run _TeamCity On-Premises_

1. Install fixed release 2026.1.7, 2026.2.3 or 2026.3, or apply the security patch plugin on TeamCity 2021.2 or later. Confirm the patch is actually installed; do not assume an update setting proves installation.
2. Restrict /app/agents and its subpaths to expected agent source addresses, including cloud-agent outbound addresses and NAT gateways. This is an additional mitigation, not a replacement for patching.

### If you use _TeamCity Cloud_

1. JetBrains has already applied corrective measures and says customers need take no action.

## From vulnerability news to your exposure

A newly exploited vulnerability does not mean every organisation is equally exposed. The useful questions are whether the affected technology is present, which version is running and whether the vulnerable service is reachable.

ShadowMap monitors external assets, services and technologies, correlating them with vulnerability intelligence. Where testing is safe and authorised, selected exposures can also be validated through CART. A version match alone is not proof of exploitation.

[Attack surface management in ShadowMap](https://shadowmap.com/attack-surface-management/)

## Update log

- 3 Dec 2026, 14:27 IST Clarified fixed releases and hosted-service status; added analysis of agent impersonation, build-secret exposure and artefact trust.
- 3 Dec 2026, 12:14 IST First published.

## Sources

- [Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication](https://thehackernews.com/2026/12/critical-jetbrains-teamcity-flaw-lets.html) The Hacker News, 3 Dec 2026

### New incident reports by email

One email a week with the reports published since the last one.

We email you about this topic only; unsubscribe any time. See our [Privacy Policy](https://shadowmap.com/privacy-policy/).

You are on the list. The next weekly email will include you.

That did not go through. Please try again.

[Add ShadowMap as a preferred source on Google](https://www.google.com/preferences/source?q=shadowmap.com) 

##  Want us to look at your domain? 

 Give us one apex domain and we'll send back a written snapshot of what is already visible from outside. No call required. 

[ Get a free exposure snapshot ](https://shadowmap.com/resources/exposure-snapshot/?source=threat-intel-jetbrains-teamcity-build-agent-hijack-flaw) [ Book a 30-minute demo ](https://shadowmap.com/contact/?source=demo&threat-intel=jetbrains-teamcity-build-agent-hijack-flaw)
