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.

Security Impact: 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.

Vulnerability at a Glance

FieldDetail
CVECVE-2026-136858
CVSS9.1 (Critical)
Affected ProductsAll TeamCity On-Premises versions
Patched Versions2026.1.7, 2026.2.3, 2026.3
Workaround PluginAvailable for TeamCity 2021.2+
Active ExploitationNone observed as of disclosure
Cloud UsersNot 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

Why This Matters Beyond the CVSS Score
On-premises TeamCity deployments with build agents reachable from broad network segments — especially environments where the server is exposed to the internet or a large internal blast radius.
Cloud-agent configurations where NAT gateway egress IPs are not documented or locked down, making the reverse proxy mitigation difficult to implement correctly.
Organizations with complex downstream artifact consumers — the more pipelines that depend on artifacts from a compromised build, the wider the blast radius.
Regulated industries (finance, healthcare, government) where build integrity attestations may be compliance requirements.

Immediate Actions

  1. 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.
  2. Restrict the /app/agents endpoint at your reverse proxy to only accept traffic from known build agent IP ranges. Document all NAT gateway egress IPs for cloud-based agents.
  3. Audit build logs from the past 30+ days for anomalies: unexpected agent registrations, build result discrepancies, or artifacts with unexpected checksums.
  4. 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.
  5. 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.