Package vulnerability, severity high
JetBrains TeamCity On-Premises auth bypass (CVE-2026-136858) lets attackers impersonate build agents and steal secrets
Published
JetBrains fixed a critical authentication bypass (CVE-2026-136858) in TeamCity On-Premises that lets unauthenticated attackers who can reach the server over HTTP(S) impersonate legitimate build agents. They could intercept builds, read secrets passed to the agents, and tamper with build results and artifacts. JetBrains knows of no active exploitation and found no evidence of exploitation in TeamCity Cloud.
What's affected
- teamcityevery version
What to do
- Update TeamCity On-Premises servers to 2026.1.7, 2026.2.3 or 2026.3.
- If you cannot restart the server right away, install the JetBrains security patch plugin, which supports TeamCity 2021.2 and later.
- Restrict access to /app/agents and its subpaths at the reverse proxy to the IP addresses where legitimate build agents originate.
- Check teamcity-server.log for entries about an existing agent with a different authorization token; a non-empty token may indicate a takeover attempt.
- If a takeover is suspected, rotate the secrets and credentials that were passed to build agents.
Secrets to rotate if you were affected
Cloud credentials, Package registry tokens.
Check whether you were affected
To check a machine, run this in Claude Code with the Pharon plugin, in the repository that uses it. The check is free and needs no account:
/pharon:check-incident teamcity-agent-auth-bypass-2026-12Don't wait for the next one to reach the news. Pharon tells the team that owns the affected repo within minutes. Free for 7 days, no card.
Get alerted for the next oneReferences
Notice teamcity-agent-auth-bypass-2026-12, signed with key feed-prod-2026-10 (Ed25519). The Pharon CLI verifies the signature before using a notice.