---
title: "JetBrains patches critical TeamCity flaw that lets attackers hijack build agents"
description: "JetBrains has disclosed a critical vulnerability in on-premises TeamCity that lets an unauthenticated attacker impersonate a build agent and intercept the…"
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 disclosed a critical vulnerability in on-premises TeamCity that lets an unauthenticated attacker impersonate a build agent and intercept the builds assigned to it. Patched releases are available, and the company says it has no evidence the flaw has been exploited. 

[ShadowMap Research](https://shadowmap.com/threat-intel/about/)  · First published 3 Dec 2026, 12:14 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.** _All TeamCity On-Premises_ versions are vulnerable; _TeamCity Cloud_ users need take no action. JetBrains has issued patched releases and a security patch plugin for servers that cannot be restarted.
- **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

Every on-premises TeamCity version is affected, according to JetBrains. The company has fixed the flaw in new releases, including 2026.3, and lists the others in its advisory. Operators who cannot restart their server can apply a security patch plugin, available for TeamCity 2021.2 or later. _TeamCity Cloud_ users 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.

## 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.
- Whether the earlier attacks on CVE-2026-63077 and this disclosure involve the same attacker.

## What to do

### If you run _TeamCity On-Premises_

1. Update to a patched release, such as 2026.3, following the versions listed in the JetBrains advisory.
2. If you cannot restart the server, apply the security patch plugin, which supports TeamCity 2021.2 or later.
3. Configure your reverse proxy to allow requests to /app/agents and its subpaths only from the addresses your legitimate build agents use, including cloud agent outbound addresses and NAT gateways.

### If you use _TeamCity Cloud_

1. Take no action; JetBrains says the hosted service is not affected by this flaw.

### For everyone else

1. Treat build servers as sensitive infrastructure: if anyone on the network can reach one over HTTP(S), they can claim to be one of its agents, so limit that reachability at the network edge.

## 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, 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)
