News
TeamCity on-premises flaw CVE-2026-136858 lets an outsider impersonate a build agent.
JetBrains patched CVE-2026-136858, a CVSS 9.1 authentication bypass in every on-premises TeamCity version, that lets anyone who can reach the server impersonate an authorized build agent.
Saasment is an early-access AI security platform. Get early access.

Impact
- What was impacted
- Every on-premises TeamCity version. CVE-2026-136858, CVSS 9.1, lets an unauthenticated attacker who can reach the server over HTTP or HTTPS impersonate an existing authorized build agent. JetBrains says that can displace the real agent, intercept builds, expose credentials and other secrets passed to the agent, falsify build results, and publish tampered artifacts. Downstream builds that consume those artifacts could run attacker-supplied code. No TeamCity user account is required. Fixed in 2026.1.7, 2026.2.3, and 2026.3. A security patch plugin covers TeamCity 2021.2 and later when the server cannot be restarted. TeamCity Cloud needs no action. JetBrains said it has no evidence of active exploitation.
- Who was impacted
- Teams that run TeamCity On-Premises, especially if the server accepts HTTP or HTTPS from a network they do not fully control. TeamCity Cloud customers are outside this flaw.
- What you need to do
- Update on-premises servers to 2026.1.7, 2026.2.3, or 2026.3. If you cannot restart, install JetBrains' security patch plugin on 2021.2 or later. On the reverse proxy, allow /app/agents and its subpaths only from addresses where real build agents originate, including cloud-agent egress addresses and their NAT gateways. Do not send a request to that path to test the flaw. TeamCity Cloud needs nothing for this CVE.
JetBrains disclosed a critical flaw in on-premises TeamCity that can bypass authentication and take over an authorized build agent. CVE-2026-136858 has a CVSS score of 9.1. An unauthenticated attacker who can reach a TeamCity server over HTTP or HTTPS can impersonate an existing authorized build agent. No TeamCity user account is required. JetBrains says a successful attack can displace the legitimate agent, intercept builds assigned to it, expose credentials and other secrets passed to the agent, falsify build results, and publish tampered artifacts. Downstream builds that consume those artifacts could then run attacker-supplied code. The company said there is no evidence of active exploitation. Researcher Jiawei Guo disclosed the issue on November 24, 2026.
Every on-premises TeamCity version is affected. The fix is in 2026.1.7, 2026.2.3, and 2026.3. JetBrains recommends updating the server to one of those versions. Teams that cannot apply the update without restarting the server can use a security patch plugin, available for TeamCity 2021.2 and later. TeamCity Cloud customers do not need to act on this flaw.
As further mitigation, JetBrains says to configure the reverse proxy so requests to /app/agents and its subpaths are allowed only from IP addresses where legitimate build agents originate. Include the outbound addresses cloud agents use and any NAT gateways they connect through. This disclosure comes nearly four months after a different TeamCity flaw, CVE-2026-63077, scored 9.8, was used in real attacks, according to CISA. That earlier flaw is not CVE-2026-136858, and this account does not say the new flaw is being exploited.
For your AI agent
Agent instructions — copy paste to Claude
You are helping me respond to CVE-2026-136858, a CVSS 9.1 authentication bypass in on-premises TeamCity. An unauthenticated attacker who can reach the server over HTTP or HTTPS can impersonate an existing authorized build agent, intercept builds, read secrets passed to that agent, and tamper with results and artifacts. Fixed in TeamCity 2026.1.7, 2026.2.3, and 2026.3. Do not send a request to /app/agents, do not try to register an agent, and do not write a proof of concept. Ask before you upgrade the server, install the plugin, restart TeamCity, or change a reverse-proxy rule. Facts from the disclosure: - Product: TeamCity On-Premises. Every on-premises version is vulnerable. TeamCity Cloud needs no action. Do not mark a Cloud site as affected. - CVE-2026-136858. CVSS 9.1. No TeamCity user account is required. The attacker must be able to reach the server over HTTP or HTTPS. JetBrains says exploitation may impersonate an existing authorized build agent. A successful attack could displace that agent, intercept builds assigned to it, expose credentials and other secrets passed to the agent, falsify build results, or publish tampered artifacts. Downstream builds that consume those artifacts could execute attacker-supplied code. Do not invent the request that does this. - Patched versions: 2026.1.7, 2026.2.3, and 2026.3. Do not invent a later build, and do not add a patch number to 2026.3. - A security patch plugin is available for teams that cannot update without restarting the server. It covers TeamCity 2021.2 and later. The disclosure does not give a plugin filename or checksum. Do not invent one. Install it only from JetBrains. - Extra mitigation: configure the reverse proxy so /app/agents and its subpaths are allowed only from IP addresses where legitimate build agents originate. Include outbound addresses used by cloud agents and any NAT gateways they connect through. Do not probe that path. - JetBrains said there is no evidence of active exploitation. Jiawei Guo disclosed the issue on November 24, 2026. Absence of known exploitation is not proof a given server is clean. - Nearly four months earlier, a different flaw, CVE-2026-63077, CVSS 9.8, was used in real attacks, according to CISA. Do not treat CVE-2026-136858 as that flaw, and do not mark the new CVE as listed in the Known Exploited Vulnerabilities catalog. This account does not say that. Context: - What was impacted: on-premises TeamCity build-agent authentication. Cloud is out of scope. - Who should care: anyone running TeamCity On-Premises that is reachable over HTTP or HTTPS, especially from a network outside the build farm. - What to do: move to 2026.1.7, 2026.2.3, or 2026.3, or install the 2021.2-or-later security patch plugin if a restart is impossible, and restrict /app/agents to real agent addresses. Do this in order. Prefer read-only checks. Ask before you upgrade, restart, install a plugin, or change the proxy. 1. Inventory - List TeamCity servers and say whether each one is On-Premises or Cloud, which version it runs, and whether it accepts HTTP or HTTPS from anywhere other than the build farm. Read only. If I have not given you that inventory, say what you need and stop. - A Cloud instance needs no action for this CVE. An on-premises server below 2026.1.7, 2026.2.3, or 2026.3, depending on its release line, is in scope. Do not guess the release line. If the version string is ambiguous, say so. - List the IP addresses of legitimate build agents, including cloud-agent egress and NAT gateways, if I have provided them. Read only. - Check agent and build logs for an agent that connected from an unexpected address or for artifacts you did not expect. Read only. If nothing matches, say so. Do not treat a clean log as proof the server was never reachable. 2. Contain - If an on-premises server is reachable beyond the build farm, propose limiting /app/agents and its subpaths to the agent addresses I listed. Name the proxy rule before you ask me to change it. Ask before you block an address a real agent uses. - Do not take the server offline as a first step. Ask before you stop builds. 3. Remediate - Propose updating each in-scope server to 2026.1.7, 2026.2.3, or 2026.3, matching the release line it is already on. Ask before you upgrade, and ask before you restart. - If I cannot restart, propose the JetBrains security patch plugin for 2021.2 or later. Do not download it from anywhere but JetBrains. Ask before you install it. Servers older than 2021.2 are not covered by that plugin in this disclosure. Say so, and do not invent a backport. - Do not propose a workaround that sends traffic to /app/agents. 4. Verify - Report the version now installed on each server I let you check, and whether the proxy rule I approved is in place. - Report which servers are Cloud, which are still below a patched release, and which I did not approve for an upgrade. 5. Report back - State that JetBrains reported no evidence of active exploitation, and that CVE-2026-63077 is a different, earlier flaw. - If an unexpected agent address or a tampered artifact shows up, say what the logs show and what they do not show. Do not draft a customer notice unless I ask. Do not invent a CVE, a fixed version, a plugin checksum, or exploit steps. If a check needs access I have not given you, say what you need and stop.
Related briefs.
Related AI security resources: AI Security Library, Saasment Security MCP skills.