JetBrains TeamCity On-Premises authentication bypass during agent registration (CVE-2026-136858)
JetBrains has patched an authentication bypass (official JetBrains / CVE.org CVSS v3.1 9.1 Critical) affecting all TeamCity On-Premises versions before 2026.1.7, 2026.2.3, and 2026.3. An unauthenticated attacker who can reach a TeamCity server over HTTP(S) can impersonate an existing authorised build agent, intercept builds, access build secrets, and tamper with build results and artifacts.
Key facts: Official JetBrains / CVE.org score for CVE-2026-136858 (CWE-639) is CVSS v3.1 9.1 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N); there is no official CVSS v4.0 score. CVE.org published the record at 21:18 GMT on 2 December 2026; NVD vulnStatus is Awaiting Analysis as of 2 December 2026 22:18 GMT (NVD Secondary 9.1 matches the official vector). Affected: all TeamCity On-Premises versions. Fixed: 2026.1.7, 2026.2.3, or 2026.3 (or later), or the official JetBrains security patch plugin (CVE-2026-136858-patch.zip) for 2021.2 and later (no server restart required; fixes only this CVE). TeamCity Cloud is already patched and Cloud customers need take no action. No exploitation reported by JetBrains as of 2 Dec 2026; not listed in CISA KEV as of 2 Dec 2026 (catalogue 2026.11.30). KEV due dates bind US federal agencies only (BOD 26-04). Patch now regardless.
Reviewed by Simon Phillips (Principal Security Architect) and Oliver Legg (Head of Security Operations). First published 2 December 2026.
At a glance
Verified directly from the JetBrains TeamCity advisory, JetBrains issues-fixed, CVE.org, NVD and the CISA KEV catalogue on 2 December 2026.
CVSS v3.1 9.1 Critical
Official JetBrains / CVE.org score is CVSS v3.1 9.1 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, CWE-639). No official CVSS v4.0 score is published; NVD Secondary 9.1 matches the official vector (NVD status: Awaiting Analysis as of 2 Dec 2026 22:18 GMT).
All TeamCity On-Premises
Affects all TeamCity On-Premises versions. Upgrade to 2026.1.7, 2026.2.3, or 2026.3 (or later), or install CVE-2026-136858-patch.zip (2021.2+, no restart, this CVE only). TeamCity Cloud is already patched.
No reported exploitation
No exploitation reported by JetBrains as of 2 Dec 2026; not listed in CISA KEV as of 2 Dec 2026 (catalogue 2026.11.30). This does not rule out unseen exploitation. KEV due dates bind US federal agencies only (BOD 26-04). Patch now regardless.
What happened
Unauthenticated build-agent impersonation over HTTP(S) in TeamCity On-Premises, published 2 December 2026.
An authentication bypass during build-agent registration in JetBrains TeamCity On-Premises allows an unauthenticated attacker who can reach the server over HTTP(S) to impersonate an existing authorised build agent without needing a TeamCity user account.
Once an attacker displaces a legitimate build agent, they can intercept builds assigned to it, capture credentials and other secrets passed to the agent, falsify build results, and publish tampered artifacts. Downstream builds or deployments consuming those tampered artifacts could execute attacker-supplied code.
JetBrains issues-fixed lists CVE-2026-136858 as the TeamCity product CVE addressed in 2026.3, 2026.2.3, and 2026.1.7. All TeamCity On-Premises versions are affected; TeamCity Cloud has already been patched with no evidence of exploitation there. Credit goes to security researchers.
Proactive remediation
Upgrade TeamCity On-Premises or install the official security patch plugin, and restrict build-agent registration paths.
Upgrade or apply patch plugin
Upgrade TeamCity On-Premises to 2026.1.7, 2026.2.3, or 2026.3 (or later). If a full upgrade cannot happen immediately, install JetBrains' official security patch plugin (CVE-2026-136858-patch.zip) for 2021.2 and later (no server restart required; fixes only CVE-2026-136858).
Check automatic security updates
On 2024.03 through 2026.2.1, review and apply pending patches under Administration | Updates | Available security updates. On 2026.2.2 and later, set Security patches to Install automatically (or apply downloaded patches if set to Download and notify).
Restrict /app/agents and network access
As JetBrains' official additional mitigation, configure your reverse proxy or path-aware access control so requests to /app/agents and its subpaths are allowed only from expected build-agent IPs (including cloud-agent egress and NAT gateways). Restrict server access to trusted networks or VPN and keep the server and build agents on separate hosts.
Reactive detection and response
Official JetBrains log indicator in teamcity-server.log and containment steps if takeover is suspected.
Search teamcity-server.log
Search teamcity-server.log for of the existing agent, but different authorization token "<token>" (where <token> is a placeholder). A non-empty token may indicate an attempt to take over an existing build agent; empty-token entries ("") are expected and can be disregarded. Never publish extracted tokens.
Verify agent history and artifacts
For any non-empty token hit, check the affected agent's connection history, hostname and source IP around the timestamp, and compare against build logs, build results and published artifacts to determine whether interception succeeded.
Rotate secrets and trace artifacts
If compromise is suspected, preserve logs and build results, patch or upgrade the server, rotate all credentials passed to potentially affected builds, treat those artifacts as untrusted until verified, and trace where they were used or deployed.
Free detection pack (v1.0.0)
51 verified files built by our threat hunt team: 11 KQL hunts, 6 Sigma rules, and read-only bash and PowerShell version checkers with optional --log scanning for teamcity-server.log (tokens automatically redacted as (redacted)). Note: version checkers cannot see whether the patch plugin is installed, and KQL hunts have not been run against a live tenant; validate against your schema before alerting.
Full detection pack (51 files)
All 11 KQL hunts, 6 Sigma rules, read-only PowerShell and bash checkers (with optional --log mode), README, CHANGELOG and test fixtures in one zip.
KQL hunts and Sigma rules
11 KQL hunting queries (not run against a live tenant) and 6 Sigma rules covering TeamCity build-agent registration anomalies and /app/agents traffic.
Read-only checkers, tests and README
Read-only bash and PowerShell version and log checkers (redacts tokens; cannot detect patch plugin state), fixtures and documentation.
How CybaVerse helps
One 24/7 UK-based Cyber Operations team using CybaOps to find exposed CI/CD servers, verify remediation and hunt for build-agent impersonation.
CybaOps brings asset inventory, exposure tracking and 24/7 detection and response together in one platform, with your EDR optional. When flaws like CVE-2026-136858 (CVSS v3.1 9.1 Critical) drop, our Cyber Operators triage alerts within 15 minutes, help your team verify upgrades or patch-plugin coverage across TeamCity On-Premises servers, and hunt for unauthorised agent registrations and artifact tampering.
Official sources
Primary vendor and vulnerability records verified on 2 December 2026.