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. Upgrade now, and hunt now.
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 and dateUpdated is 4:57 GMT on 3 December 2026 (CISA ADP). NVD vulnStatus is Awaiting Analysis (NVD lastModified 3 December 2026, 05:19 GMT). NVD Secondary 9.1 matches the official vector; it is not a different score. 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. Exploitation in the wild reported by SecurityWeek on 4 Dec 2026, starting about one day after the 2 Dec 2026 disclosure (seen against honeypots; attackers guessed build agent IDs). JetBrains said on 2 Dec 2026 it was not aware of active exploitation. Not listed in CISA KEV as of 4 Dec 2026 (catalogue 2026.12.03). This is reported exploitation, not a vendor confirmation. The CISA KEV catalogue 2026.12.03 was released at 17:50 GMT on 3 December 2026 (1,811 entries), checked 4 December 2026. KEV due dates bind US federal agencies only (BOD 26-04). Upgrade now regardless. Hunt now.
Reviewed by Simon Phillips (Principal Security Architect) and Oliver Legg (Head of Security Operations). First published 2 December 2026. Updated 4 December 2026 with reported exploitation and detection pack v1.1.0.
At a glance
Verified from the JetBrains TeamCity advisory, JetBrains issues-fixed, CVE.org and NVD on 2 December 2026, and from SecurityWeek (4 December 2026, 05:51 ET / 10:51 GMT) and the CISA KEV catalogue (2026.12.03, 1,811 entries, released 17:50 GMT on 3 December 2026) on 4 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, last modified 3 Dec 2026, 05:19 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 the official security patch plugin (CVE-2026-136858-patch.zip) for 2021.2 and later (no restart, this CVE only). TeamCity Cloud is already patched.
Exploitation reported
Exploitation in the wild reported by SecurityWeek on 4 Dec 2026, starting about one day after the 2 Dec 2026 disclosure (seen against honeypots; attackers guessed build agent IDs). JetBrains said on 2 Dec 2026 it was not aware of active exploitation. Not listed in CISA KEV as of 4 Dec 2026 (catalogue 2026.12.03). This is reported exploitation, not a vendor confirmation. JetBrains' 2 Dec 2026 advisory (updated 16:32 GMT) still says: "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability." KEV due dates bind US federal agencies only (BOD 26-04). Upgrade now regardless.
What happened
Unauthenticated build-agent impersonation over HTTP(S) in TeamCity On-Premises, disclosed 2 December 2026, with exploitation reported about one day later.
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. Credit goes to security researchers.
Update, 4 December 2026: Exploitation in the wild reported by SecurityWeek on 4 Dec 2026, starting about one day after the 2 Dec 2026 disclosure (seen against honeypots; attackers guessed build agent IDs). JetBrains said on 2 Dec 2026 it was not aware of active exploitation. Not listed in CISA KEV as of 4 Dec 2026 (catalogue 2026.12.03). This is reported exploitation, not a vendor confirmation. SecurityWeek published at 05:51 ET (10:51 GMT) on 4 December 2026. The JetBrains advisory, still dated 2 December 2026 and last updated at 16:32 GMT that day, says: "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability."
Proactive remediation
Upgrade TeamCity On-Premises or install the official security patch plugin, and restrict build-agent registration paths. Upgrade now.
Upgrade or apply the security 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). Because reported attacks involve guessing build agent IDs, this restriction matters even on estates that are still being upgraded. 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, plus hunting for /app/agents request bursts. Hunt now.
Search teamcity-server.log
Search teamcity-server.log for the official stem of the existing agent, but different authorization token followed by a double-quoted placeholder. A non-empty token may indicate an attempt to take over an existing build agent; empty quoted tokens ("") 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. Also review requests to /app/agents from unexpected source IPs since 2 December 2026. Pack hunt Q12 and a new Sigma rule (both labelled OUR PATTERN) look for bursts of official /app/agents requests from one source with many distinct URIs. URI layout, how agent identifiers appear in logs, and the request-count thresholds are unverified.
Rotate secrets and trace artifacts
If compromise is suspected, preserve logs and build results, upgrade or install the official security patch plugin, 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.1.0)
52 verified files built by our threat hunt team: 12 KQL hunts, 7 Sigma rules, and read-only bash and PowerShell version checkers with optional --log scanning for teamcity-server.log (tokens automatically redacted as (redacted)). Q12 and a new Sigma rule cover OUR PATTERN bursts of official /app/agents requests from one source with many distinct URIs; URI layout, how agent identifiers appear in logs, and thresholds are unverified. Version checkers cannot see whether the security patch plugin is installed. The KQL in this pack has NOT been run against a live tenant; validate against your schema before alerting.
Full detection pack (52 files)
All 12 KQL hunts, 7 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
12 KQL hunting queries (not run against a live tenant) and 7 Sigma rules covering TeamCity build-agent registration anomalies, the official log stem, and bursts of /app/agents traffic.
Read-only checkers, tests and README
Read-only bash and PowerShell version and log checkers (redacts tokens; cannot detect security 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) are reported as exploited, our Cyber Operators triage alerts within 15 minutes, help your team verify upgrades or security patch plugin coverage across TeamCity On-Premises servers, and hunt for unauthorised agent registrations and artifact tampering.
Official sources
Vendor, vulnerability record and exploitation reporting, verified on 2 and 4 December 2026.
- JetBrains TeamCity Security Advisory: CVE-2026-136858 (2 December 2026, updated 16:32 GMT)
- JetBrains Security Issues Fixed
- CVE.org record: CVE-2026-136858
- SecurityWeek: JetBrains TeamCity vulnerability exploited one day after disclosure (4 December 2026, 05:51 ET / 10:51 GMT)
- NVD record: CVE-2026-136858 (vulnStatus: Awaiting Analysis)
- CISA Known Exploited Vulnerabilities catalogue and BOD 26-04