CVE-2021-31904
JetBrains TeamCity vulnerability analysis and mitigation

Overview

In JetBrains TeamCity before version 2020.2.2, a cross-site scripting (XSS) vulnerability was discovered on the test history page. The vulnerability was identified and tracked as CVE-2021-31904, and was publicly disclosed on May 11, 2021 (NVD, JetBrains Blog).

Technical details

The vulnerability was classified as a medium severity issue with a CVSS v3.1 Base Score of 6.1 (MEDIUM). The vulnerability vector string is CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating that it is network exploitable, requires low attack complexity, needs no privileges, requires user interaction, and has a changed scope with low impact on confidentiality and integrity but no impact on availability. The vulnerability is categorized under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (NVD).

Impact

The XSS vulnerability could potentially allow attackers to execute malicious scripts in the context of the user's browser session when viewing the test history page. This could lead to unauthorized access to sensitive information, session hijacking, or other malicious actions performed in the context of the authenticated user's session (NVD).

Mitigation and workarounds

The vulnerability was fixed in TeamCity version 2020.2.2. Users are advised to upgrade to this version or later to mitigate the security risk. No alternative workarounds were published (JetBrains Blog).

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-2025-59457HIGH7.7
  • JetBrains TeamCityJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesSep 17, 2025
CVE-2025-57734MEDIUM6.5
  • JetBrains TeamCityJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesAug 20, 2025
CVE-2025-59456MEDIUM5.5
  • JetBrains TeamCityJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesSep 17, 2025
CVE-2025-59455MEDIUM4.2
  • JetBrains TeamCityJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesSep 17, 2025
CVE-2025-57733LOW3.8
  • JetBrains TeamCityJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesAug 20, 2025

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