CVE-2025-68166
JetBrains TeamCity vulnerability analysis and mitigation

Overview

CVE-2025-68166 is a DOM-based Cross-Site Scripting (XSS) vulnerability in JetBrains TeamCity affecting the OAuth connections tab. It impacts all TeamCity versions prior to 2025.11 and was published on December 16, 2025. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (Red Hat Advisory, JetBrains Advisory).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), specifically of the DOM-based variant (CAPEC-588). The flaw exists in the OAuth connections tab of the TeamCity web interface, where attacker-controlled input is processed by client-side JavaScript and written to the DOM without adequate sanitization or encoding. Exploitation requires no authentication but does require user interaction — a victim must visit or be directed to a maliciously crafted page or URL that triggers the DOM manipulation (Red Hat Advisory, JetBrains Advisory).

Impact

Successful exploitation allows an attacker to inject and execute arbitrary JavaScript in the context of a victim's browser session on the TeamCity instance. This can lead to theft of session tokens and credentials — particularly dangerous if the victim is a TeamCity administrator — as well as unauthorized actions performed on behalf of the victim, such as modifying CI/CD pipeline configurations. Confidentiality and integrity are both impacted at a low level, while availability is not directly affected (Red Hat Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication. The EPSS score is approximately 0.158%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Detection plugins are available via Nessus (plugin 279408) and Qualys (detection ID 530766) (Tenable Nessus, Red Hat Advisory).

Exploitation steps

  1. Reconnaissance: Identify publicly accessible JetBrains TeamCity instances running versions prior to 2025.11, using tools like Shodan or Censys, or by targeting known internal deployments.
  2. Craft malicious payload: Construct a URL or page that, when visited by a TeamCity user on the OAuth connections tab, injects a malicious JavaScript payload into the DOM via an unsanitized input parameter processed client-side.
  3. Deliver the payload: Trick a TeamCity user (ideally an administrator) into visiting the crafted URL via phishing, social engineering, or embedding the link in a shared resource.
  4. Execute malicious script: Once the victim loads the page, the injected script executes in their browser context, enabling the attacker to steal session cookies, capture credentials, or perform actions on the TeamCity instance on behalf of the victim (Red Hat Advisory, JetBrains Advisory).

Indicators of compromise

  • Network: Unusual outbound requests from a user's browser to external domains shortly after visiting the TeamCity OAuth connections tab; unexpected HTTP requests to attacker-controlled infrastructure originating from TeamCity user sessions.
  • Logs: TeamCity access logs showing requests to the OAuth connections tab with anomalous or encoded query parameters; browser console errors related to unexpected script execution on the OAuth tab.
  • Process/Session: Unexpected administrative actions (e.g., new OAuth connections added, pipeline modifications) performed under a legitimate user's session without their knowledge.

Mitigation and workarounds

JetBrains has released a fix in TeamCity version 2025.11; upgrading to this version or later is the primary recommended remediation (JetBrains Advisory). As interim mitigations, administrators should restrict access to the TeamCity OAuth connections tab to trusted users only, deploy a Web Application Firewall (WAF) configured to detect and block XSS payloads, and monitor for suspicious activity or unexpected script executions. Users should also ensure browser security controls (e.g., Content Security Policy headers) are enforced where possible.

Additional resources


SourceThis report was generated using AI

Related JetBrains TeamCity vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-65906CRITICAL10
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 23, 2026
CVE-2026-63077CRITICAL9.8
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
YesYesJul 27, 2026
CVE-2026-59796HIGH8.1
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 10, 2026
CVE-2026-59795MEDIUM6.1
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 10, 2026
CVE-2026-59794MEDIUM5.4
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management