The short version
- The flaw. CVE-2026-136858 carries a CVSS score of 9.1 and affects on-premises TeamCity. An attacker who can reach the server over HTTP(S) needs no account or credentials to impersonate an existing authorised build agent.
- What an attacker could do. JetBrains says an intruder could displace a legitimate agent, intercept its builds and read the secrets passed to it, then falsify results or publish tampered artefacts. Downstream builds that consume those artefacts could run attacker-supplied code.
- Who is affected. All TeamCity On-Premises versions are vulnerable; TeamCity Cloud users need take no action. JetBrains has issued patched releases and a security patch plugin for servers that cannot be restarted.
- Exploitation status. JetBrains says it has no evidence of active exploitation. The company credits researcher Jiawei Guo with responsibly disclosing the issue on 24 November 2026.
Timeline
| Date | Event |
|---|---|
| 24 Nov | Researcher Jiawei Guo responsibly discloses the flaw to JetBrains. |
| 3 Dec | The disclosure is reported publicly, with patched TeamCity releases and a patch plugin available. |
How the attack works
The flaw lets an unauthenticated attacker who can reach a TeamCity server over HTTP(S) impersonate an existing authorised build agent. No TeamCity user account is needed.
Once accepted, the impostor can take the place of a real agent and receive the work meant for it. Builds can carry credentials and other secrets, which would then be exposed. Tampered artefacts are the second risk: anything built downstream from them could execute code the attacker supplied.
Who is affected and what JetBrains advises
Every on-premises TeamCity version is affected, according to JetBrains. The company has fixed the flaw in new releases, including 2026.3, and lists the others in its advisory. Operators who cannot restart their server can apply a security patch plugin, available for TeamCity 2021.2 or later. TeamCity Cloud users need take no action.
As an extra measure, JetBrains suggests restricting the /app/agents path and its subpaths at the reverse proxy so that only expected build-agent addresses can reach it, including the outbound addresses of cloud agents and any NAT gateways they use.
The disclosure comes nearly four months after a different critical TeamCity flaw, CVE-2026-63077, with a CVSS score of 9.8, was used in real-world attacks according to CISA. The source does not say the two issues are otherwise connected.
What is not known yet
- Whether anyone has tried to exploit CVE-2026-136858 since the patch appeared, and whether any server has been compromised.
- Whether build secrets or artefacts have been taken from any organisation.
- How many TeamCity servers are reachable over HTTP(S) from untrusted networks.
- Whether the earlier attacks on CVE-2026-63077 and this disclosure involve the same attacker.
What to do
If you run TeamCity On-Premises
- Update to a patched release, such as 2026.3, following the versions listed in the JetBrains advisory.
- If you cannot restart the server, apply the security patch plugin, which supports TeamCity 2021.2 or later.
- Configure your reverse proxy to allow requests to /app/agents and its subpaths only from the addresses your legitimate build agents use, including cloud agent outbound addresses and NAT gateways.
If you use TeamCity Cloud
- Take no action; JetBrains says the hosted service is not affected by this flaw.
For everyone else
- Treat build servers as sensitive infrastructure: if anyone on the network can reach one over HTTP(S), they can claim to be one of its agents, so limit that reachability at the network edge.
Update log
- First published.
Sources
New incident reports by email
One email a week with the reports published since the last one.
We email you about this topic only; unsubscribe any time. See our Privacy Policy.