JetBrains TeamCity auth bypass CVE-2026-136858 exploited to hijack build agents
JetBrains disclosed a critical authentication bypass (CVSS 9.1) in TeamCity On-Premises that lets an unauthenticated attacker who can reach the server take over authorized build agents during agent registration. Attacks were reported roughly one day after disclosure, allowing attackers to impersonate agents and intercept builds. Defenders should upgrade to TeamCity 2026.3, 2026.2.3 or 2026.1.7, restrict network access to the server, and review agent registrations and build integrity.
Why Critical
Actively exploited unauthenticated authentication bypass in a widely used CI/CD server, enabling build interception and supply chain compromise.
What to do
- Update TeamCity On-Premises to 2026.3, 2026.2.3 or 2026.1.7.
- If you cannot restart the server, install the JetBrains security patch plugin (TeamCity 2021.2 or later).
- Restrict /app/agents and its subpaths at the reverse proxy to the expected source IPs of legitimate build agents, including cloud agent outbound addresses and NAT gateways.
- Check teamcity-server.log for the line 'of the existing agent, but different authorization token <token>.' and a non-empty token, then review the agent's connection history, source IP and builds around that timestamp.
- If exploitation is suspected, preserve logs and build results, patch the server, rotate credentials passed to potentially affected builds, and treat their artifacts as untrusted until verified.
Exploitation
Exploited in the wild.
Affected versions
- JetBrains TeamCity On-Premises: All versions before 2026.1.7, 2026.2.3 and 2026.3
Fixed versions
- JetBrains TeamCity On-Premises: 2026.1.7, 2026.2.3, 2026.3
- JetBrains TeamCity Cloud: Already updated automatically
From the full article text, extracted with AI. Always check the original articles below.
Chance of exploitation (EPSS)
1.4% in the next 30 days, higher than 72.5% of all CVEs. Estimated daily by FIRST.org; for the story's highest-scoring CVE.
Categories
- Supply Chain & Dependencies
- Zero-Day Vulnerabilities
- Enterprise Applications
CVEs
- CVE-2026-136858
Affected products
- JetBrains TeamCity On-Premises before 2026.3, 2026.2.3, 2026.1.7
Sources
- NVD: CVE-2026-136858: In JetBrains TeamCity before 2026.3, 2026.2.3, 2026.1.7 authentication bypass during agent registration allowed takeover
- The Hacker News: Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication
- SecurityWeek: JetBrains TeamCity Vulnerability Exploited One Day After Disclosure
- BleepingComputer: Critical JetBrains TeamCity flaw exploited to hijack build agents
Timeline
- Picked up by Early Warning
- New source: The Hacker News
- New source: SecurityWeek
- Level High → Critical
- New source: BleepingComputer