Critical TeamCity On-Premises flaw lets unauthenticated attackers impersonate build agents (CVE-2026-136858)
JetBrains has patched a critical authentication bypass in TeamCity On-Premises that could let attackers without an account take over build agents, steal pipeline secrets and tamper with artifacts.

Key points
- CVE-2026-136858 is a critical authentication bypass affecting TeamCity On-Premises; attackers only need HTTP(S) reach to the server.
- Exploitation can displace a legitimate build agent, exposing credentials passed to it and enabling tampered build results or artifacts.
- JetBrains reports no known active exploitation and says TeamCity Cloud has been remediated with no evidence of compromise.
- Fixed versions are 2026.1.7, 2026.2.3 and 2026.3; a security patch plugin covers TeamCity 2021.2 and later.
- This is the second critical unauthenticated TeamCity flaw fixed in just over four months.
What happened
JetBrains has fixed a critical authentication bypass in TeamCity On-Premises, its self-hosted CI/CD server, tracked as CVE-2026-136858. An attacker who can reach the server over HTTP(S) can exploit it without any TeamCity user account, posing as an authorized build agent.
Because the server passes each build whatever it needs to run, including deployment keys, cloud tokens and package registry passwords, a hijacked agent can expose those secrets. Attackers could also falsify build results or publish altered artifacts, so downstream builds may end up running attacker-supplied code. In practice this is a route to a software supply chain attack.
Current status
JetBrains did not disclose the root cause. The issue was reported privately by researcher Jiawei Guo on 24 November 2026. The vendor says it is not aware of active exploitation, and that TeamCity Cloud has already been corrected with no sign of compromise.
Context matters: an earlier critical unauthenticated TeamCity flaw, CVE-2026-63077, patched in late July, was added to CISA's Known Exploited Vulnerabilities catalog about a week after disclosure. On-premises TeamCity servers have previously been targeted by state-sponsored and financially motivated actors through CVE-2023-42793 and CVE-2024-27198.
Recommended response
Upgrade to 2026.1.7, 2026.2.3 or 2026.3. Where a restart cannot happen immediately, the security patch plugin (TeamCity 2021.2 and later) fixes this vulnerability only.
JetBrains also suggests restricting /app/agents and its subpaths at a reverse proxy or other path-aware control to expected agent IP addresses, including cloud agent outbound addresses and NAT gateways. Administrators should review teamcity-server.log for the message about an existing agent with a different authorization token: a non-empty token may point to a takeover attempt, while an empty one is normal. Follow the vendor's guidance on confirming and responding to a successful compromise.
What to do now
- Inventory all TeamCity On-Premises servers and upgrade them to 2026.1.7, 2026.2.3 or 2026.3, applying the security patch plugin as an interim fix where a restart must wait.
- Restrict access to /app/agents and its subpaths to known build agent IP addresses, including cloud agent egress and NAT gateway addresses.
- Review teamcity-server.log for existing-agent entries with a different, non-empty authorization token and escalate any hits to incident response.
- If takeover is suspected, rotate deployment keys, cloud tokens and registry credentials exposed to agents and validate recent build artifacts before release.
- Record the change and exposure assessment under your vulnerability management and third-party software supply chain controls for regulatory evidence.
How useful was this story?
0.0 out of 5 · 0 ratings
Related frameworks
Our consultants can assess your exposure and map the change to your controls and evidence.