As reported by The Hacker News, JetBrains has disclosed a critical authentication bypass vulnerability in TeamCity On-Premises that allows unauthenticated attackers to impersonate legitimate build agents. This is not just another CVE — it is a direct threat to the integrity of the software supply chain, and every organization running TeamCity on-premises should treat it as an emergency.
Vulnerability at a Glance
| Field | Detail |
|---|---|
| CVE | CVE-2026-136858 |
| CVSS | 9.1 (Critical) |
| Affected Products | All TeamCity On-Premises versions |
| Patched Versions | 2026.1.7, 2026.2.3, 2026.3 |
| Workaround Plugin | Available for TeamCity 2021.2+ |
| Active Exploitation | None observed as of disclosure |
| Cloud Users | Not affected |
Why This Matters Beyond the CVSS Score
The CVSS 9.1 rating undersells the real-world risk. Build agents are the hands of your CI/CD pipeline — they receive source code, execute build scripts, and critically, handle secrets, tokens, and credentials injected at runtime. An attacker who displaces a legitimate agent gains access to all of that.
What elevates this beyond a standard server compromise is the downstream propagation risk. Tampered artifacts published by a hijacked agent can flow into deployment pipelines, container registries, and production environments. Every consumer of those artifacts — internal teams, customers, partners — becomes potentially compromised. This is supply chain poisoning without needing to touch the source code repository.
The attacker doesn't need to breach your git server or compromise a developer's laptop. They just need network access to the TeamCity server's HTTP(S) endpoint.
Who Is Most Exposed
Immediate Actions
- Patch immediately to version 2026.1.7, 2026.2.3, or 2026.3 — or apply the security patch plugin if a restart is not feasible in your change window.
- Restrict the
/app/agentsendpoint at your reverse proxy to only accept traffic from known build agent IP ranges. Document all NAT gateway egress IPs for cloud-based agents. - Audit build logs from the past 30+ days for anomalies: unexpected agent registrations, build result discrepancies, or artifacts with unexpected checksums.
- Rotate all secrets that were accessible to build agents during the vulnerable period — this includes deployment credentials, API tokens, signing keys, and cloud provider credentials passed through TeamCity parameters.
- Verify artifact integrity by comparing recent build outputs against known-good hashes or re-running critical builds from a patched instance.
Shield53 Recommendations
Beyond the immediate patch, this vulnerability highlights a pattern we have seen repeatedly with CI/CD platforms: the build agent communication channel is treated as trusted when it should be treated as untrusted. We recommend:
- Network segmentation: Place TeamCity servers behind strict network controls. The HTTP(S) endpoint should never be broadly reachable — internally or externally.
- Mutual TLS for agent communication: Where supported, enforce client certificate authentication for build agents rather than relying on shared tokens or agent identifiers alone.
- Secret scanning at the artifact layer: Implement post-build verification that artifacts do not contain unexpected embedded credentials or modified dependencies.
- Continuous monitoring of agent inventory: Alert on new agent registrations, agent identity changes, or agents reporting from unexpected IP ranges.
- Implement SLSA or equivalent build provenance attestation so that downstream consumers can verify artifact integrity independently of the build system.
Given that JetBrains' previous TeamCity flaw (CVE-2026-63077, CVSS 9.8) was added to CISA's Known Exploited Vulnerabilities catalog, we expect threat actors to develop exploits for CVE-2026-136858 rapidly — if they have not already. The window between disclosure and active exploitation for CI/CD vulnerabilities has historically been measured in days, not weeks. Treat this as a same-week priority.