
JetBrains disclosed CVE-2026-136858 on December 2, a critical flaw in TeamCity On-Premises, its self-hosted CI/CD server. An unauthenticated attacker who can reach the server over HTTP(S) may impersonate an existing authorized build agent, JetBrains says, without needing a TeamCity account. The company warns that this could let an attacker intercept builds, access the secrets passed to the agent, and tamper with build results and artifacts. The Hacker News reports a CVSS score of 9.1.
JetBrains spells out the supply-chain risk: a successful attacker “could displace a legitimate build agent and intercept builds assigned to it,” falsify build results or publish tampered artifacts, and downstream builds that consume those artifacts could then run attacker-supplied code. JetBrains says it found no evidence that TeamCity Cloud was exploited and had already applied fixes there. The Hacker News adds that the company noted no evidence of active exploitation of the flaw. Security researcher Jiawei Guo reported it privately on November 24. It is a different flaw from CVE-2026-63077, the TeamCity bug we covered in July.
How to check if you’re affected
Affected products are all TeamCity On-Premises versions, according to JetBrains. TeamCity Cloud customers need to take no action.
- Update the server to 2026.1.7, 2026.2.3 or 2026.3, which contain the fix.
- If you cannot update right away, JetBrains released a security patch plugin for TeamCity 2021.2 and later that can be installed without restarting the server. On 2024.03 through 2026.2.1, review and apply pending patches under Administration | Updates, “Available security updates.” On 2026.2.2 and later, choosing “Install automatically” under Security patches lets the server install verified patches on its own; JetBrains recommends enabling it.
- Restrict agent traffic as an extra step. JetBrains advises configuring a reverse proxy or other path-aware access control so requests to
/app/agentsand its subpaths are only allowed from the IP addresses where legitimate build agents are expected, including the outbound addresses of cloud agents and any NAT gateways they connect through. - Check for possible exploitation. JetBrains says to search
teamcity-server.logfor entries containingof the existing agent, but different authorization token "<token>". A non-empty token may indicate an attempt to take over an existing build agent; entries with an empty token ("") are expected and can be disregarded. For any non-empty hit, use its timestamp to review that agent’s connection history and assigned builds, verify the hostname and source IP match what you expect, and compare against build logs, results and published artifacts to see whether the attempt succeeded. - If you suspect exploitation, JetBrains says to preserve the relevant logs and build results, update or patch the server, rotate any credentials passed to potentially affected builds, and treat artifacts from those builds as untrusted until verified, tracing where they were used or deployed.
Sources
- JetBrains: Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858)
- The Hacker News: Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication
- NVD entry for CVE-2026-136858 (linked from The Hacker News; the page is script-rendered and was not read directly)
- Earlier coverage: Critical JetBrains TeamCity Flaw Enables Remote Code Execution
