An attacker without an account can pose as a trusted build agent on self-hosted TeamCity servers. JetBrains disclosed the TeamCity vulnerability, tracked as CVE-2026-136858, on December 2, 2026. The company rates it 9.1 out of 10 on the CVSS scale (Common Vulnerability Scoring System), and every TeamCity On-Premises version is affected.
JetBrains shipped patched releases 2026.1.7, 2026.2.3 and 2026.3 together with the advisory, signed by Daniel Gallo. Servers that cannot be upgraded get a security patch plugin for TeamCity 2021.2 and later, which installs without a restart. The vendor says it is not aware of any active exploitation.
The bug sits in agent registration. TeamCity, the JetBrains continuous integration (CI) server, hands build jobs to separate machines called build agents. The NVD record describes an authentication bypass during agent registration that "allowed takeover of authorized build agents." JetBrains files the flaw under CWE-639, authorization bypass through a user-controlled key.
No account and no user click are needed. JetBrains, acting as the CVE Numbering Authority, assigned the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. Those fields mean network access, low attack complexity, no privileges and no user interaction. Confidentiality and integrity impact are high, availability impact is none, and NVD has not yet given its own score.
"If exploited, an unauthenticated attacker who can reach a TeamCity server over HTTP(S) could impersonate an existing authorized build agent, intercept builds and access their secrets, and tamper with build results and artifacts. The attacker does not need a TeamCity user account."
— JetBrains, security advisory for CVE-2026-136858, December 2, 2026
A hijacked agent identity redirects jobs meant for a legitimate machine. According to the technical section of the JetBrains advisory, the impostor displaces the real agent and intercepts the builds assigned to it. Any credentials and other secrets the server passes to that agent become exposed.
Tampering is the second half of the risk.
An impostor agent can falsify build results or push altered artifacts. Downstream builds that consume those artifacts could then run code supplied by the intruder. One spoofed agent therefore becomes a route into a software supply chain attack, where poisoned output travels to the projects that depend on it.
"A successful exploitation could displace a legitimate build agent and intercept builds assigned to it. This can expose credentials and other secrets passed to the agent. An attacker could also falsify build results or publish tampered artifacts. Downstream builds that consume those artifacts could execute attacker-supplied code."
— JetBrains, security advisory for CVE-2026-136858, technical details, December 2, 2026
JetBrains tracks the issue internally as TW-105963. Its table of fixed security issues rates it Critical and credits researcher Jiawei Guo. Guo reported the flaw privately on November 24, 2026, under the company's Coordinated Disclosure Policy. Fixes shipped eight days later, but the advisory does not explain how the registration check fails.
TeamCity Cloud is already protected. JetBrains says it applied corrective measures there and found no evidence that any Cloud environment was exploited this way. Cloud customers need to take no action.
The patch plugin covers TeamCity 2021.2 onward. It closes only CVE-2026-136858, not the other security issues closed in newer releases. Since TeamCity 2024.03, servers can download security patches on their own and notify administrators if notifications are configured. On 2024.03 through 2026.2.1, pending patches appear under Available security updates in Administration | Updates.
Servers on 2026.2.2 or later can apply the fix with no administrator involved. With Install automatically selected under Security patches, they are set to fetch and install it unprompted. The Download and notify mode leaves installation to administrators on the Updates page, and JetBrains calls the Ignore setting not recommended. JetBrains recommends enabling automatic installation to receive future patches as soon as they are available. Other supported builds of the server take the plugin by manual download.
Search the server log
JetBrains gives one sign of a takeover attempt. Search teamcity-server.log for entries containing of the existing agent, but different authorization token "<token>". A non-empty token may indicate an attempt to take over an existing agent. Entries with an empty token ("") are expected and can be ignored.
A matching log entry carries a timestamp for the investigation. JetBrains advises reviewing the affected agent's connection history and the builds assigned to it around that time. The hostname and source IP address should match what that agent normally uses. Build logs, build results and released artifacts then show whether the attempt succeeded.
JetBrains lists four steps for suspected compromise. Preserve the relevant logs and build results, and update or patch the server. Rotate every credential passed to potentially affected builds. Treat artifacts from those builds as untrusted until verified, and trace where they were used or deployed.
A reverse proxy rule can narrow exposure in the meantime. JetBrains suggests allowing requests to /app/agents and its subpaths only from IP addresses where real build agents originate. That allow list should include outbound addresses of cloud agents and any NAT gateways they connect through. Its general advice is to keep TeamCity on trusted networks and use a VPN for outside access. The server and agents should run on separate hosts.
TeamCity has already drawn real attacks this year. On August 5, 2026, the US Cybersecurity and Infrastructure Security Agency (CISA) added an earlier TeamCity vulnerability to its Known Exploited Vulnerabilities catalog. That bug, CVE-2026-63077, is a deserialization of untrusted data weakness, and CISA cited evidence of active exploitation. The JetBrains table describes it as unauthenticated remote code execution via the agent polling protocol, another weakness in how the server talks to its agents. Antoni Tremblay reported it (TW-102164, CWE-502), and JetBrains closed it in 2026.1.3 and 2025.11.7.
An earlier round of TeamCity releases closed another critical hole. JetBrains patched CVE-2026-132891, remote code execution through external pull requests, in versions 2026.2, 2026.1.4 and 2025.11.8. Tremblay reported that one too (TW-102506, CWE-696).
A build agent sits between source code and the software a company ships. Whoever controls it receives the credentials builds need and decides what goes into the artifacts. CVE-2026-136858 opens that seat to anyone who can reach the server over HTTP(S), with no account at all.
— AnonHaven Editorial Team
Self-hosted TeamCity needs version 2026.1.7, 2026.2.3 or 2026.3, or the patch plugin where an upgrade is blocked. After patching, the teamcity-server.log search can reveal whether anyone tried to claim an agent before the fix.
Have a story? Become a contributor.
We work with independent researchers and cybersecurity professionals. Send us a tip or submit your article for editorial review.