CVE-2026-136858 is an authentication bypass in TeamCity On-Premises agent registration. It lets an unauthenticated attacker take over an authorized build agent. JetBrains rates it 9.1 (CVSS v3.1) and says it is not aware of any active exploitation. All on-premises versions are affected, so update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin.
| CVE ID | CVE-2026-136858 |
|---|---|
| Product | JetBrains TeamCity On-Premises |
| Flaw type | Authentication bypass during agent registration (CWE-639) |
| CVSS | 9.1 (CVSS v3.1, JetBrains as CNA) / NVD score not yet provided |
| Exploitation / KEV | No confirmed exploitation |
| Fixed version | See Affected and fixed versions |
What is CVE-2026-136858?
JetBrains disclosed the flaw on December 2, 2026, in a TeamCity security advisory for CVE-2026-136858. The bug sits in the step where build agents register with the TeamCity server. An attacker who can reach the server over HTTP(S) can impersonate an existing authorized agent. No TeamCity user account is needed, and no user has to click anything.
A successful attack can displace the legitimate agent and route its builds to the attacker. JetBrains says this can expose credentials and other secrets passed to the agent. The attacker could also falsify build results or publish tampered artifacts. Downstream builds that consume those artifacts could then run attacker-supplied code.
The NVD record for CVE-2026-136858 lists the weakness as CWE-639, Authorization Bypass Through User-Controlled Key. JetBrains, acting as the CNA, scored it 9.1 with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. NVD has not published its own assessment yet. The vector rates the impact on confidentiality and integrity as high, with no impact on availability.
Security researcher Jiawei Guo reported the flaw privately on November 24, 2026. JetBrains tracks it as TW-105963 on its list of fixed security issues, where it carries a Critical rating.
Is CVE-2026-136858 being exploited?
JetBrains says it was not aware of any active exploitation when it published the advisory. We found no confirmed public proof-of-concept, and the NVD record shows no CISA KEV listing. JetBrains has already fixed TeamCity Cloud. The company also found no evidence that any cloud environment was attacked through this flaw.
Affected and fixed versions
JetBrains says every TeamCity On-Premises version is affected. The NVD record lists the affected range as versions before 2026.3, 2026.2.3 and 2026.1.7.
| Product | Branch | Affected versions | Fixed version |
|---|---|---|---|
| TeamCity On-Premises | 2026.3 | Not affected | 2026.3 |
| TeamCity On-Premises | 2026.2.x | Before 2026.2.3 | 2026.2.3 |
| TeamCity On-Premises | 2026.1.x | Before 2026.1.7 | 2026.1.7 |
| TeamCity On-Premises | Older branches | All versions | Update to 2026.1.7, 2026.2.3 or 2026.3 (patch plugin available for 2021.2 and later) |
| TeamCity Cloud | – | Fixed by JetBrains | No action needed |
How to fix CVE-2026-136858
Update the server to 2026.1.7, 2026.2.3 or 2026.3. You can install the release by hand or use the automatic update option in TeamCity. A full update is the better choice, since these releases carry other security fixes too.
If you cannot patch yet
JetBrains released a security patch plugin for TeamCity 2021.2 and later. It fixes only CVE-2026-136858 and installs without a server restart. From TeamCity 2024.03, the server can download security patches itself. Go to Administration | Updates and follow the steps for your version:
- 2024.03 through 2026.2.1: review and apply pending patches under Available security updates.
- 2026.2.2 and later: under Security patches, select Install automatically. With this setting on, the server should install the fix on its own.
- Other supported versions: download and install the plugin manually.
As an extra layer, JetBrains suggests a rule on your reverse proxy or another path-aware access control. Allow requests to /app/agents and its subpaths only from IP addresses where your build agents connect from. Include the outbound addresses of cloud agents and any NAT gateways they use. The vendor also advises limiting server access to trusted networks and using a VPN for outside users and agents. Run the server and the agents on separate hosts.
How to check if you are affected
JetBrains gives a log check for takeover attempts. Search teamcity-server.log for entries that contain this text:
of the existing agent, but different authorization token "<token>"
A non-empty token may signal an attempt to take over an agent. Entries with an empty token (“”) are normal. For each hit, use the timestamp to review that agent’s connection history and assigned builds. Confirm that the hostname and source IP match the real agent.
If you suspect a takeover, preserve logs and build results, then patch. Rotate credentials passed to the affected builds. Treat their artifacts as untrusted until verified, and trace where they were deployed.
Why it matters
Build agents sit close to an organization’s secrets. They receive the credentials that builds need, and their artifacts feed later builds and deployments. A rogue agent can therefore turn a server-side bug into a software supply chain problem.
The TeamCity agent channel has drawn fast attacks before. CVE-2026-63077 was an unauthenticated RCE in the agent polling protocol. CISA added it to its KEV catalog on August 5, 2026, nine days after disclosure, according to Rapid7’s analysis of CVE-2026-63077.
Servers older than 2021.2 cannot use the patch plugin and need a full upgrade. JetBrains has not described the root cause in detail. Its log check points at one pattern: a registration that names an existing agent but presents a different authorization token.