TeamCity Flaw Lets Strangers Pose as Your Build Agents
JetBrains patched CVE-2026-136858 (CVSS 9.1), a TeamCity bug that lets unauthenticated attackers impersonate authorized build agents, steal build secrets and tamper with artifacts. Update to 2026.1.7, 2026.2.3 or 2026.3.
JetBrains has fixed a critical TeamCity bug that lets anyone who can reach the server pose as one of its trusted build agents, no account needed. The fake agent can then take over the builds meant for the real one, along with the passwords and keys those builds carry. JetBrains disclosed CVE-2026-136858 on Dec. 2, and The Hacker News notes that the last critical TeamCity flaw, CVE-2026-63077, ended up exploited in the wild.
For defenders
Affected: all TeamCity On-Premises versions before 2026.1.7, 2026.2.3 and 2026.3. TeamCity Cloud needs no action. CVE-2026-136858, CVSS 9.1 (v3.1, from JetBrains), an authentication bypass during agent registration (CWE-639).
Impact: per JetBrains, an unauthenticated attacker with HTTP(S) access can impersonate an existing authorized agent, push the real one aside, read secrets passed to its builds, fake build results and publish tampered artifacts. Any downstream build that consumes those artifacts could run the attacker’s code, which makes this a supply-chain problem, not just a server bug.
Status: no exploitation known, per JetBrains. No public exploit in our CVE data. EPSS about 1.5% (76th percentile). Not in CISA KEV. Reported by researcher Jiawei Guo on Nov. 24.
Mitigate now: upgrade to 2026.1.7, 2026.2.3 or 2026.3. If you can’t restart the server, JetBrains offers a security patch plugin for TeamCity 2021.2 and later. As an extra layer, have your reverse proxy allow /app/agents and its subpaths only from addresses your build agents use, including cloud-agent egress and NAT gateways. After patching, check the agent list for agents that changed address or reconnected unexpectedly, and rotate secrets passed to builds if anything looks wrong.
What it means for you
TeamCity is the system many software companies use to build and package their apps automatically. If an attacker hijacks it, they could slip malicious code into software that customers then install. You don’t need to do anything as a consumer. If your business runs its own TeamCity server, or pays a developer who does, make sure it’s updated this week.
Do this now
- Update self-hosted TeamCity to 2026.1.7, 2026.2.3 or 2026.3, or install JetBrains’ security patch plugin.
- Restrict
/app/agentsat your reverse proxy to your known build-agent addresses. - Keep the TeamCity server off the open internet if your agents and staff can reach it over a VPN.
- Review recent agent connections and rotate build secrets if any agent looks out of place.
CVE at a glance
- CVSS
- 9.1 Critical (v3.1)
- EPSS
- 1.4% chance of exploitation in the next 30 days (higher than 72.5% of CVEs)
- Exploited in the wild
- Not on CISA’s KEV list
- Public exploit
- None reported in public exploit databases
Data from NVD, FIRST EPSS and CISA KEV, refreshed automatically. We report whether public exploit code exists but never link to it: fake proof-of-concepts that infect researchers are common.