READ. SCROLL. LISTEN.

Unbiased headlines. Facts, not spin.

Unbiased Headlines is an independently owned news organization. We bring you the facts, not opinions, written fresh from 110+ named sources. Sources linked so you can verify it yourself.

← Back to headlines

JetBrains Patches Critical TeamCity Flaw That Lets Unauthenticated Attackers Hijack Build Agents

JetBrains Patches Critical TeamCity Flaw That Lets Unauthenticated Attackers Hijack Build Agents
JetBrains disclosed CVE-2026-136858 on Wednesday, Dec. 2, a 9.1-severity authentication bypass affecting every on-premises TeamCity version. An attacker who can reach the server over HTTP(S) needs no account to impersonate a build agent and take its jobs and secrets. JetBrains says it has no evidence of exploitation, but the last critical TeamCity bug was weaponized in real attacks.

JetBrains on Wednesday, Dec. 2, disclosed a critical flaw in on-premises TeamCity, its CI/CD server. The bug is tracked as CVE-2026-136858 and carries a CVSS score of 9.1 out of 10.

It is an authentication bypass in the build agent registration flow. Every on-premises version is vulnerable.

What an attacker can do

JetBrains says an unauthenticated attacker who can reach a TeamCity server over HTTP or HTTPS can impersonate an existing authorized build agent. No TeamCity account is required.

The rogue agent can displace the legitimate one and intercept the builds assigned to it. That exposes credentials and other secrets passed to the agent.

The attacker can also falsify build results or publish tampered artifacts. In JetBrains' words, downstream builds that consume those artifacts "could execute attacker-supplied code."

The NVD vector is network-reachable, low complexity, no privileges, no user interaction, with high confidentiality and integrity impact. It maps the flaw to CWE-639, authorization bypass through a user-controlled key. NVD analysis was still listed as "Awaiting Analysis" as of Dec. 3.

The fix

JetBrains patched the flaw in versions 2026.1.7, 2026.2.3 and 2026.3. Customers are told to update.

For teams that cannot restart the server right away, JetBrains has released a security patch plugin. It works on TeamCity 2021.2 or later.

TeamCity Cloud customers need to do nothing.

JetBrains also recommends a network-level mitigation. Configure the reverse proxy to allow requests to /app/agents and its subpaths only from IP addresses where legitimate build agents are expected to originate. That list should include outbound addresses used by cloud agents and any NAT gateways they connect through.

Hunting for signs of abuse

JetBrains published a log indicator for spotting attempts, according to threat-intelligence firm Threadlinqs, which has built detection rules around it. The server log message to look for is "existing agent, but different authorization token" carrying a non-empty token.

An empty token is routine reconnect behavior. A non-empty one suggests a possible displacement or impersonation attempt.

Threadlinqs advises correlating any hit with agent connection history, source IP, active builds, and build logs and artifacts from the same window. If a rogue agent is confirmed, it says secrets exposed to that agent should be rotated.

Exploitation status

JetBrains states there is no evidence of active exploitation. The researcher Jiawei Guo reported the issue privately on Nov. 24, and the company disclosed it eight days later.

That is a short window by industry standards. It also means any server still unpatched is now running with a publicly documented bug.

This is not TeamCity's first critical problem this year. The U.S. Cybersecurity and Infrastructure Security Agency said CVE-2026-63077, a separate TeamCity flaw scored 9.8, was exploited in real-world attacks. That happened nearly four months before this disclosure.

No source links the two bugs technically. But the earlier case shows attackers do pay attention to this product.

Why a build server matters

Build servers sit upstream of everything an organization ships. They hold registry credentials, API keys and cloud access keys so deployments can run automatically.

Tamper with an artifact at the agent level and the change can travel through every later stage that trusts it. Stolen cloud keys could give an intruder a path into infrastructure outside TeamCity entirely.

Security teams are being urged to audit build logs for unauthorized agent registrations or unexpected artifact changes from before the patch. Anyone who patches without checking leaves open the question of whether the server was already compromised.

NVD's analysis is still pending. The open question is whether exploitation begins now that the advisory is public, and JetBrains has not reported any as of Dec. 3.

Sources used for this briefing

7 links from 7 independent newsrooms (syndicated copies of the same report count once)

These are the sources it draws on, linked so you can verify.

center
The Hacker NewsCritical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication
unknown
zerohour.dayCritical TeamCity flaw can hijack build agents without login (CVE-2026-136858)
unknown
intel.threadlinqs.comCritical JetBrains TeamCity On-Premises Flaw (CVE-2026-136858) Lets Unauthenticated Attackers Hijack Build Agents
unknown
TechNewsReelJetBrains Patches Critical TeamCity Flaw Allowing Agent Hijacking
unknown
GazewireJetBrains TeamCity Critical Flaw Patched: CVE-2026-136858
unknown
realhacker.newsCritical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication
unknown
hamerintel.comCritical JetBrains TeamCity Bug Exposes Build Servers to Unauthenticated Takeover