CVE-2026-136858: Critical JetBrains TeamCity Authentication Bypass Threatens Software Supply Chain Security
Overview
On December 2, 2026, JetBrains disclosed a critical authentication bypass vulnerability in TeamCity On-Premises, tracked as CVE-2026-136858.
The vulnerability affects the build agent registration process. An unauthenticated remote attacker could impersonate an authorised build agent, intercept build workloads, access sensitive build secrets and manipulate build results and artifacts.
TeamCity is widely used to automate software compilation, testing, packaging and deployment. Compromising the trust relationship between the TeamCity server and its build agents could undermine the integrity of the software delivery pipeline.
The vulnerability carries a CVSS v3.1 score of 9.1 (Critical). Exploitation requires neither a TeamCity user account nor user interaction.
| Vulnerability Details | Description |
|---|---|
| CVE ID | CVE-2026-136858 |
| Product | JetBrains TeamCity On-Premises |
| Vulnerability Type | Authentication bypass |
| Affected Component | Build agent registration |
| Severity | Critical |
| CVSS v3.1 Score | 9.1 |
| CWE | CWE-639: Authorization Bypass Through User-Controlled Key |
| Attack Vector | Network |
| Attack Complexity | Low |
| Privileges Required | None |
| User Interaction | None |
| Discovered By | Jiawei Guo |
| Published Date | December 2, 2026 |
| Public PoC | Not identified |
| Active Exploitation | Not confirmed |
| Security Patch | Available |
Affected Products and Versions
All unpatched versions of TeamCity On-Premises are affected by CVE-2026-136858. JetBrains has addressed the vulnerability in versions 2026.1.7, 2026.2.3 and 2026.3.
A standalone security patch plugin is available for TeamCity 2021.2 and later, allowing organisations to address the vulnerability without performing a full version upgrade. Installations older than 2021.2 must be upgraded to a fixed release.
| Affected Versions | Available Remediation |
|---|---|
| TeamCity 2026.2.x before 2026.2.3 | Upgrade to 2026.2.3 or a later fixed release. |
| TeamCity 2026.1.x before 2026.1.7 | Upgrade to 2026.1.7 or a later fixed release. |
| Earlier releases from 2021.2 onwards | Install the compatible security patch plugin or upgrade to a fixed release. |
| Releases older than 2021.2 | Upgrade to a fixed release. |
TeamCity 2026.3 also includes the security fix.
JetBrains has already applied the necessary corrective measures to TeamCity Cloud and reported no evidence of exploitation within its cloud environments. TeamCity Cloud customers are not required to take additional action.
Technical Analysis
Authentication Bypass in Build Agent Registration
TeamCity follows a server-agent architecture. The server manages build configurations, schedules jobs and coordinates CI/CD workflows. Build agents execute the assigned workloads and return build results and artifacts.
Under normal conditions, a build agent must be authorised before it can execute workloads. This establishes a trust boundary between the TeamCity server and its build infrastructure.
Normal TeamCity Build Architecture
Conceptual diagram: source code checkout may occur on the build agent or on the TeamCity server, depending on the configured checkout mode. The arrows illustrate the logical workflow rather than a required source-transfer path.
CVE-2026-136858 compromises this trust boundary during agent registration. An attacker with HTTP or HTTPS access to a vulnerable TeamCity server could assume the identity of an existing authorised build agent without possessing a TeamCity user account.
The vulnerability is classified under CWE-639, which describes an authorisation weakness involving a user-controlled identifier.
Unlike conventional authentication bypass vulnerabilities that grant access to user accounts, CVE-2026-136858 affects the identity of a trusted CI/CD component. The compromised identity could allow an attacker to interfere with legitimate build workloads.
Security Impact of CVE-2026-136858
Conceptual representation of the affected trust boundary and potential security consequences. This diagram does not represent a confirmed exploitation campaign.
The available disclosure does not establish the exact vulnerable code path or validation failure. It also does not establish arbitrary operating system command execution on the TeamCity server or direct administrative access.
Security Impact
Build agents process resources required for compiling, testing and deploying applications. These resources may include proprietary source code, environment variables, repository credentials, API tokens and deployment secrets.
Impersonating an authorised build agent could compromise the confidentiality and integrity of the workloads assigned to it.
Unauthorised access to legitimate build workloads.
Exposure of source code and sensitive build parameters.
Exposure of secrets made available during build execution.
Modification of reported build outcomes.
Modification of generated binaries and software packages.
Potential distribution of manipulated software through trusted release channels.
The extent of the compromise depends on the workloads, permissions and resources associated with the impersonated build agent.
Where build agents participate in production release workflows, the consequences could extend beyond the CI/CD environment.
Exploit Maturity Assessment
As of December 3, 2026, no verified public proof-of-concept or functional exploit has been identified for CVE-2026-136858. JetBrains also reported no known active exploitation at the time of disclosure.
| Exploit Maturity Parameter | Status |
|---|---|
| Public exploit availability | Not identified |
| Functional exploit | Not confirmed |
| Private exploit availability | Unknown |
| Active exploitation | Not confirmed |
| Exploit reliability | Not established |
| CISA KEV listing | Not listed at the time of assessment |
| EPSS score | Not available at the time of assessment |
The CISA SSVC assessment classifies the vulnerability as automatable, with a total technical impact on the vulnerable component. This indicates that exploitation could potentially be automated if a functional exploit becomes available.
The absence of a public exploit should not be interpreted as evidence that the vulnerability is difficult to exploit.
Vulnerability Timeline
The exact vulnerability discovery date has not been publicly disclosed. Security fixes were available when JetBrains publicly disclosed the vulnerability on December 2, 2026.
Active Exploitation and Threat Actors
No verified exploitation campaign or threat actor attribution had been identified for CVE-2026-136858 as of December 3, 2026.
The vulnerability remains significant because CI/CD infrastructure handles sensitive credentials and controls software production and distribution. Its exploitation could have security consequences beyond the affected server.
Potential Downstream Security Impact
Exposure of privileged build or deployment credentials could place connected repositories, cloud services and production environments at risk. Manipulated build artifacts could also compromise downstream software releases if they pass through trusted distribution channels.
These consequences depend on the permissions and resources available to the affected build workloads. No confirmed post-exploitation activity or vulnerability chain involving CVE-2026-136858 has been publicly documented.
MITRE ATT&CK Mapping
Indicators of Compromise (IOCs)
No verified campaign-specific indicators of compromise, such as malicious IP addresses, domains, file hashes or malware samples, have been publicly associated with CVE-2026-136858.
However, JetBrains has provided a log-based investigation indicator that can help identify suspected build agent impersonation attempts.
Administrators should examine teamcity-server.log for entries containing the following message:
of the existing agent, but different authorization token "<token>"
May indicate an attempt to impersonate an existing build agent. Further investigation is required.
Expected behaviour according to JetBrains. Can be disregarded for this specific check.
Administrators should correlate the timestamp of the suspicious entry with the affected agent's connection history, assigned build workloads and published artifacts.
Detection and Monitoring
Security teams should monitor TeamCity infrastructure for abnormal agent registration activity and inconsistencies in build execution.
The following log sources and telemetry can support an investigation.
| Log Source | Detection Opportunities |
|---|---|
teamcity-server.log |
Unexpected agent registration and authorisation token mismatches. |
teamcity-agent.log |
Unexpected changes in agent connection and operational activity. |
| Build execution logs | Inconsistencies between expected and recorded build activity. |
| Reverse proxy logs | Agent connections originating from unrecognised source IP addresses. |
| Artifact repository logs | Unexpected artifact publication or modification. |
| Identity and access logs | Unusual use of build and deployment credentials. |
| EDR telemetry | Abnormal process execution or network activity on managed build infrastructure. |
Recommended Investigation Workflow
SIEM detection rules should correlate non-empty authorisation token mismatch events with unexpected agent network identities and subsequent build activity.
EDR monitoring can provide additional visibility into suspicious activity on managed build hosts. However, endpoint monitoring alone may not detect build agent impersonation originating outside the managed infrastructure.
Risk Assessment
CVE-2026-136858 presents a critical risk because it compromises a trusted component responsible for executing software build workloads.
| Risk Factor | Assessment |
|---|---|
| Technical Severity | Critical (CVSS v3.1: 9.1) |
| Exploitability | Network-based attack with low complexity and no authentication or user interaction requirements. |
| Confidentiality Impact | Potential exposure of proprietary source code, build secrets and credentials. |
| Integrity Impact | Potential manipulation of build results and software artifacts. |
| Exposure | Greater risk for internet-facing servers and environments with unrestricted network access. |
| Exploit Maturity | No verified public exploit or confirmed active exploitation. |
| Business Impact | Potential compromise of software release integrity and downstream consumers. |
| Remediation Priority | Immediate |
The actual organisational risk depends on server accessibility, build agent permissions and the sensitivity of the assigned workloads.
Environments where build agents handle production deployment credentials or participate in software release workflows should receive particular attention. The potential supply chain impact warrants immediate remediation, even in the absence of confirmed exploitation.
Patch and Mitigation
JetBrains has released security fixes for CVE-2026-136858 in the following versions:
Additional Mitigation: Restrict Agent Interface Access
JetBrains recommends configuring a reverse proxy or another path-aware access control mechanism to restrict requests to the following path and its subpaths:
/app/agents
Access should be permitted only from trusted source IP addresses associated with legitimate build agents.
Recommended Agent Access Control
When implementing these restrictions, administrators should account for cloud-hosted build agents, their outbound IP addresses and any NAT gateways through which they communicate.
These restrictions reduce the exposed attack surface but do not correct the underlying vulnerability. They should be used as additional security controls rather than substitutes for patching.
Remediation Recommendations
Immediate Actions
/app/agents and its subpaths to trusted build agent source IP addresses.Long-Term Security Measures
- Enforce least-privilege access. Limit permissions across build agents, source code repositories and deployment environments.
- Strengthen credential management. Replace long-lived credentials with short-lived, workload-specific credentials wherever possible.
- Segment CI/CD infrastructure. Separate development, testing and production build infrastructure. Restrict unnecessary network communication and limit access to production secrets.
- Protect software release integrity. Implement artifact signing, build provenance and integrity verification.
- Maintain continuous vulnerability assessment. Include CI/CD servers, build agents, plugins and supporting development infrastructure.
- Verify remediation effectiveness. Follow security patch deployment with verification to ensure affected installations are no longer vulnerable.
Key Takeaways
- Critical authentication bypass: CVE-2026-136858 has a CVSS v3.1 score of 9.1 and could allow an unauthenticated attacker to impersonate an authorised TeamCity build agent.
- Affected installations: Unpatched TeamCity On-Premises deployments are vulnerable. TeamCity Cloud has already received the necessary security measures.
- Potential impact: Build interception, exposure of sensitive build secrets and manipulation of build results or artifacts could threaten software supply chain integrity.
- Exploitation and detection: No verified public exploit or active exploitation was identified at the time of assessment. Investigate non-empty authorisation token mismatch entries in
teamcity-server.logand correlate them with agent and build activity. - Remediation: Upgrade to TeamCity 2026.1.7, 2026.2.3 or 2026.3, as appropriate, or apply the standalone security patch plugin for supported installations running 2021.2 or later. Restrict
/app/agentsaccess to trusted build agents.
Conclusion
CVE-2026-136858 demonstrates how vulnerabilities in trusted CI/CD components can create security risks beyond the affected application.
By exploiting an authentication weakness during agent registration, an unauthenticated attacker could interfere with legitimate build workloads, access sensitive information and manipulate software artifacts.
The vulnerability's low attack complexity and potential supply chain impact warrant immediate remediation.
Organisations using TeamCity On-Premises should apply the available security fixes, investigate suspicious build agent activity and verify the integrity of their software delivery pipelines.
References
Instantly Fix Risks in Endpoints & Cloud with Saner
Saner is a continuous and integrated vulnerability & exposure management platform that instantly fixes risks in endpoints and cloud.
Schedule a Demo



