JetBrains disclosed a critical flaw in TeamCity On-Premises this week, and it's the kind of bug I'd want fixed before the weekend: an unauthenticated attacker who can reach the server over HTTP(S) can impersonate an authorized build agent.
Disclosure, as always: I work at Zscaler. TeamCity isn't a competitor of ours, this is just a bug you should patch.
What We Know
Per The Hacker News, summarizing JetBrains' advisory:
- CVE-2026-136858, CVSS 9.1. Authentication bypass that lets an attacker pose as a legitimate build agent.
- Impact: exposure of build secrets, tampering with build results and artifacts, and pushing real agents off the server.
- Affected: all TeamCity On-Premises versions. TeamCity Cloud needs no action.
- Fixed in: 2026.1.7, 2026.2.3 and 2026.3. There's also a security patch plugin for 2021.2 and later if you can't restart the server right now.
- Exploitation: JetBrains says it has no evidence of active exploitation. Researcher Jiawei Guo reported it on November 24.
Why I'm not waiting for "exploited" to show up: the previous critical TeamCity bug, CVE-2026-63077, was exploited in real attacks according to CISA, about four months ago. Build servers are a known favorite.
Why Build Agents Matter
A build agent is the thing your CI server hands its secrets to. Cloud keys, signing certificates, package registry tokens, deploy credentials: they all flow to the agent so it can do its job. If an attacker can register as an agent, the server cooperatively hands them the job, and the secrets with it.
Then there's the second half: tampering with artifacts. That's not "they stole a password," that's "the thing you shipped to customers might not be the thing you built." Ask anyone who lived through a software supply chain incident which half kept them up at night.
What To Do
- Patch or install the plugin today. 2026.1.7, 2026.2.3, 2026.3, or the patch plugin for older supported servers.
- Get TeamCity off the open internet if it's there. A build server should be reachable by your developers and your agents, not by everyone.
- Interim fix from JetBrains: put a reverse proxy in front and only allow
/app/agentsand its subpaths from your known agent IPs (including cloud agent egress and NAT gateways). - Check your agent list for anything you don't recognize, and look at recent builds for agents that appeared out of nowhere.
- If you were exposed, rotate the secrets that builds use. Assume anything a build could read was readable.
Update, December 4: That didn't take long. watchTowr says CVE-2026-136858 was exploited against its honeypot network about a day after disclosure, per SecurityWeek. The attackers tried to guess the ID numbers of established build agents, which exploitation requires, and watchTowr's Jake Knott said that with common agent numbering, exploitation is "rather easy." watchTowr suggests patching internet-facing servers first, then servers whose builds handle credentials, and JetBrains has shared indicators of compromise. If you were holding this for the next maintenance window, don't. (SecurityWeek)
Bottom Line
CI/CD is production now. It holds the keys to everything you deploy, so treat the build server like a crown jewel: patched, private, and reachable only by the people and machines that need it.
Source: The Hacker News