Powerful CI/CD for DevOps-centric teams
News Security
Summary
- A critical security vulnerability has been identified in TeamCity On-Premises and assigned the Common Vulnerabilities and Exposures (CVE) identifier CVE-2026-136858.
- If exploited, this vulnerability may allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an existing authorized build agent.
- An attacker could intercept builds, access build secrets, and tamper with build results and artifacts.
- This vulnerability affects all TeamCity On-Premises versions.
- The issue has been fixed in 2026.1.7, 2026.2.3, and 2026.3.
- We strongly recommend that all users update their servers to one of the above versions.
- For those who are unable to do so, we have released a security patch plugin.
- If you’re running 2026.2.2 or later with automatic security patch installation enabled, your server should check for and install this security patch automatically. We recommend enabling this setting to receive future security patches as soon as they’re available.
- TeamCity Cloud customers don’t need to take any action.
Details
A critical security vulnerability has been identified in TeamCity On-Premises. If exploited, an unauthenticated attacker who can reach a TeamCity server over HTTP(S) could impersonate an existing authorized build agent, intercept builds and access their secrets, and tamper with build results and artifacts. The attacker does not need a TeamCity user account.
All versions of TeamCity On-Premises are affected. We have already applied the necessary corrective measures to TeamCity Cloud and have found no evidence that any TeamCity Cloud environment was exploited through this vulnerability. TeamCity Cloud customers do not need to take any action.
Security researcher Jiawei Guo reported this vulnerability to us privately on November 24, 2026, in accordance with our Coordinated Disclosure Policy.
The vulnerability has been assigned the Common Vulnerabilities and Exposures (CVE) identifier CVE-2026-136858.
A fix for this vulnerability has been introduced in versions 2026.1.7, 2026.2.3, and 2026.3. We have also released a security patch plugin for 2021.2 and later, so customers who are unable to update can still patch their environments.
Mitigation option 1: Update your server to 2026.1.7, 2026.2.3, or 2026.3
To update your TeamCity server, download and install the latest patched version (2026.1.7, 2026.2.3, or 2026.3) or use TeamCity’s automatic update option. These versions include a fix for CVE-2026-136858.
Mitigation option 2: Apply the security patch plugin
If you are unable to update your server to version 2026.1.7, 2026.2.3, or 2026.3, you can install the security patch plugin we have released for TeamCity 2021.2 or later. The security patch plugin addresses the specific vulnerability described above and can be installed without restarting the TeamCity server.
Starting with TeamCity 2024.03, TeamCity can automatically download available security patches and notify administrators if notifications are configured. Go to Administration | Updates and follow the steps for your version:
- 2024.03 through 2026.2.1: Review and apply pending patches under Available security updates.
- 2026.2.2 and later: Under Security patches, select Install automatically to have TeamCity download and install verified, compatible patches as they become available. If Download and notify is selected, review and apply downloaded patches on the Updates page. If Ignore is selected (not recommended), administrators need to manually review and install available patches.
You can also download and install the security patch plugin manually on any other supported version.
Important: The security patch plugin will address only the vulnerability described above (CVE-2026-136858). We always recommend updating your server to the latest version to benefit from many other security updates.
Best practices
Limit access to your TeamCity server to trusted networks wherever possible. If users or agents need to connect from outside those networks, use a VPN or other network access controls. Keep TeamCity up to date and run the server and build agents on separate hosts.
Technical details
This vulnerability affects TeamCity servers that are reachable over HTTP(S).
Exploitation of this vulnerability does not require authentication. A successful exploitation could displace a legitimate build agent and intercept builds assigned to it. This can expose credentials and other secrets passed to the agent. An attacker could also falsify build results or publish tampered artifacts. Downstream builds that consume those artifacts could execute attacker-supplied code.
At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability.
How to check for possible exploitation
Search teamcity-server.log for entries containing the following text:
of the existing agent, but different authorization token "<token>"
A non-empty token may indicate an attempt to take over an existing build agent. Entries with an empty token ("") are expected and can be disregarded for this check.
If you find an entry with a non-empty token, use its timestamp to review the affected agent’s connection history and any builds assigned to it around that time. Verify that the hostname and source IP address match what you expect for that agent. Compare your findings with the build logs, build results, and published artifacts to determine whether the attempt succeeded.
If you suspect exploitation, preserve relevant logs and build results, update or patch the server, and rotate any credentials passed to potentially affected builds. Treat artifacts from those builds as untrusted until verified, and trace where they were used or deployed.
Additional mitigation
As an additional mitigation, configure your reverse proxy or another path-aware access control to allow requests to /app/agents and its subpaths only from IP addresses where you expect legitimate build agents to originate. Include the outbound addresses used by cloud agents and any NAT gateways they connect through.
Support
If you have any questions about this issue or encounter problems updating your server or installing the security patch plugin, please contact the TeamCity Support team by submitting a ticket.











