News · JetBrains (TeamCity) · 2 min read
Event date: · Published:
Critical TeamCity flaw lets attackers hijack build agents and steal secrets
JetBrains disclosed CVE-2026-136858 on December 3, 2026, a 9.2 CVSS authentication bypass that lets unauthenticated attackers impersonate TeamCity build agents and read their secrets.
JetBrains disclosed a critical authentication bypass vulnerability in TeamCity On-Premises on December 3, 2026, warning that any attacker with network access to the server can impersonate a legitimate build agent and read the secrets its builds carry, according to the TeamCity security bulletin.
What changed
- JetBrains assigned CVE-2026-136858 to the authentication bypass and disclosed it on December 3, 2026, rating it 9.2 (critical) on the CVSS scale.
- Any attacker with HTTP or HTTPS access to the server can impersonate a legitimate build agent without holding a TeamCity account.
- Exploitation only requires guessing an active build-agent ID, which is trivial because agent IDs start at 1.
- Impersonating an agent lets an attacker receive its assigned builds, read the secrets those builds run with, and return falsified results or tampered artifacts.
- All TeamCity On-Premises versions are affected; TeamCity Cloud customers need to take no action.
- Fixes shipped in TeamCity 2026.1.7, 2026.2.3 and 2026.3, plus a security patch plugin for servers on 2021.2 or later that cannot restart right away.
What it means for builders using AI in CI/CD
TeamCity is a widely used CI/CD server, and many pipelines now run AI-agent build steps alongside traditional ones. A critical, actively exploited bypass like this exposes build credentials and artifacts across any pipeline that runs on TeamCity, including AI-assisted ones. JetBrains says the flaw was privately reported on November 24, 2026, and attackers began exploiting it in the wild roughly a day after the public disclosure, leaving little time for teams to patch before facing real attempts.
Availability and next steps
- Teams running TeamCity On-Premises should upgrade to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin on 2021.2 and later if they cannot restart the server immediately.
- JetBrains advises checking the
teamcity-server.logfile for the stringof the existing agent, but different authorization tokento detect possible takeover attempts.
Sources
- TeamCity security bulletin: CVE-2026-136858 (JetBrains, December 3, 2026, official)
- Critical TeamCity flaw lets unauthenticated attackers pose as build agents, grab secrets (Help Net Security, December 3, 2026)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.