TeamCity flaw let unauthenticated attackers impersonate build agents and take their secrets
JetBrains fixed CVE-2026-136858 (CVSS 9.1), an authentication bypass in TeamCity On-Premises agent registration that lets anyone who can reach the server impersonate an authorized build agent, intercept builds and their secrets, and tamper with artifacts. Fixed in 2026.1.7, 2026.2.3 and 2026.3.
JetBrains disclosed CVE-2026-136858 on December 2, a critical flaw affecting all TeamCity On-Premises versions (JetBrains). NVD describes it as an "authentication bypass during agent registration" that allowed takeover of authorized build agents, rated CVSS 9.1 (CWE-639). An unauthenticated attacker who can reach the server over HTTP(S) can impersonate an existing agent without a TeamCity account, receive the builds assigned to it, read the credentials passed to those builds, and publish falsified results or tampered artifacts. Fixed releases are 2026.1.7, 2026.2.3 and 2026.3, and a security patch plugin covers 2021.2 and later without a restart. TeamCity Cloud was already patched. JetBrains knew of no exploitation at publication, but The Hacker News reports watchTowr has since seen attempts that guess sequential agent IDs.
Why it matters
A build agent is a non-human identity that the CI server trusts with deploy keys, cloud credentials and signing material. Here the server accepted a new registration for an existing agent without proving the caller held that agent's credential, so whoever registered became the agent.
Patch or install the plugin, then follow JetBrains' log check: an "existing agent, but different authorization token" entry with a non-empty token signals an attempt. Where you find one, rotate every secret passed to that agent's builds and treat its artifacts as untrusted. Restrict /app/agents at the reverse proxy to agent source IPs, and prefer short-lived workload identity tokens over long-lived secrets in build parameters. See secrets in repositories and CI and the CVE-2026-136858 brief.
Source: JetBrains, NVD, The Hacker News
Security records in this story
The vulnerabilities, incidents, attack techniques and threat groups this post covers, each with its own sourced reference page.
Related on Start with Identity
- BlogInfisical raises a $40 million Series B to build secrets and credential access for AI agents
Infisical announced a $40 million Series B on October 27 at a $600 million valuation, led by Elad Gil. The open-source secrets company says it will invest in se
- Blog4,837 hijacked GitHub accounts planted a CI secret stealer that adds cloud federated credentials
Aikido said on November 12 that an attacker used 4,837 compromised GitHub accounts from November 10 to plant a stealer that ran in at least 1,806 repositories,
- BlogAWS keys planted in public container images were used within eight seconds
Stony Brook researchers published 300 honeypot images across eight registries with planted AWS, OpenAI and Anthropic keys. The fastest AWS key was used 7.86 sec
- CVEtj-actions/changed-files tags repointed to dump CI secrets into logs
An attacker repointed tj-actions/changed-files version tags to a commit that read the GitHub Actions runner's memory and printed its secrets into workflow logs.
- CVETrivy release and GitHub Action tags hijacked to steal CI secrets
With credentials left valid by a non-atomic rotation, an attacker shipped a malicious Trivy v0.69.4 and repointed 76 of 77 trivy-action tags to code that dumped
- CVEOver-scoped CodeBuild GitHub token let an attacker ship code in Amazon Q Developer 1.84.0
An inappropriately scoped GitHub token in the CodeBuild configuration for the Amazon Q Developer VS Code extension let an attacker commit code that shipped auto