HIGH 7.3

CVE-2026-59794: JetBrains TeamCity Stored XSS Vulnerability on Cloud Profile Page

JetBrains TeamCity contains a stored cross-site scripting (XSS) vulnerability on the cloud profile page. An authenticated attacker can inject malicious scripts through agent-reported data that persist on the page and execute in the browser of any user viewing that profile, potentially stealing session tokens or performing actions on behalf of the victim. The vulnerability affects TeamCity versions before 2026.1.2 and requires an authenticated user with a valid login to exploit.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.3 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Weaknesses (CWE)
CWE-79
Affected products
1 configuration(s)
Published / Modified
2026-07-10 / 2026-07-10

NVD description (verbatim)

In JetBrains TeamCity before 2026.1.2 stored XSS on the cloud profile page was possible via agent-reported data

1 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-59794 is a stored XSS flaw (CWE-79) in JetBrains TeamCity's cloud profile page. The vulnerability exists because user-supplied data reported by agents is rendered without adequate sanitization or encoding. An authenticated actor can embed malicious JavaScript in agent-reported fields, which is stored server-side and executed in the browser context of subsequent users viewing the cloud profile. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N) reflects network accessibility, low attack complexity, requirement for login credentials, user interaction (victim must view the malicious profile), and high impact to confidentiality and integrity within the same security context.

Business impact

Stored XSS on an internal CI/CD platform like TeamCity can facilitate credential theft, lateral movement, or supply chain compromise. Attackers with valid accounts can craft payloads that harvest authentication cookies or tokens from build engineers and DevOps staff who review cloud profiles. In regulated environments, this could violate data protection obligations. The vulnerability also increases insider-threat risk if a disgruntled employee injects persistent malware into shared infrastructure.

Affected systems

JetBrains TeamCity versions prior to 2026.1.2 are vulnerable. On-premises and cloud-hosted installations are affected. The exposure is limited to authenticated users who can view cloud profile pages and to those with permissions to trigger or configure agent-reported data flows. Organizations running TeamCity 2026.1.2 or later are not affected.

Exploitability

Exploitation requires a valid TeamCity login, reducing the attack surface to insider threats and compromised internal accounts. No special privileges are needed—any authenticated user can potentially inject payloads. User interaction is mandatory; the attacker cannot execute the payload automatically. However, once stored, the malicious script persists and affects all subsequent viewers, making it a high-confidence persistence mechanism within a trusted environment. Public exploit code is not yet available, and the vulnerability is not tracked in the CISA KEV catalog.

Remediation

Upgrade TeamCity to version 2026.1.2 or later. This patch release includes input sanitization and output encoding fixes for agent-reported data on the cloud profile page. Organizations unable to upgrade immediately should restrict access to the cloud profile page via network controls or role-based access, and monitor audit logs for suspicious agent-reported data patterns.

Patch guidance

Apply JetBrains TeamCity 2026.1.2 as soon as feasible, prioritizing test environments first to validate compatibility with existing build configurations and plugins. Verify patch deployment by confirming the version string in TeamCity's About page or via REST API query. No rollback complications are expected, but test recovery procedures beforehand. Check the JetBrains advisory for any post-patch configuration changes required.

Detection guidance

Monitor TeamCity audit and activity logs for unusual agent-reported data submissions, particularly those containing HTML tags, JavaScript keywords, or encoded payloads. Web application firewalls or reverse proxies in front of TeamCity can flag POST/PUT requests to the cloud profile endpoint containing script-like content. Endpoint Detection and Response tools should alert on suspicious session activity from build engineers accessing cloud profiles shortly after suspicious data was reported. Search stored data for common XSS patterns (e.g., <script>, onerror=, eval) in agent fields.

Why prioritize this

This vulnerability scores 7.3 (HIGH) and merits urgent remediation because it enables stored malware persistence on a critical build platform accessible to development and operations staff. Exploit is feasible with minimal skill once a valid credential is obtained, and the blast radius includes credential compromise across the CI/CD supply chain. Although not yet in CISA's KEV catalog, the risk of insider abuse and lateral movement justifies treating it as a priority patch within 30 days.

Risk score, explained

The CVSS 3.1 score of 7.3 reflects the combination of network accessibility (AV:N), low attack complexity (AC:L), and high impact to confidentiality and integrity (C:H, I:H). The requirement for authenticated access (PR:L) and user interaction (UI:R) prevents a maximum severity rating. However, the stored nature of the vulnerability and its placement on a trusted internal platform elevates risk beyond a transient reflected XSS, as it affects multiple users and can facilitate supply chain attacks.

Frequently asked questions

Who can exploit this vulnerability?

Any user with a valid TeamCity login can inject malicious agent-reported data. In most organizations, this includes developers, build engineers, and CI/CD operators. Attackers who have compromised an internal account or insider threats are the primary concern.

What happens if our TeamCity instance is air-gapped or internal-only?

The network-accessible attack vector (AV:N) applies to anyone who can reach your TeamCity web UI, which may be internal-only in your environment. However, the vulnerability remains exploitable by any authenticated user on that network. Air-gapping does not eliminate insider risk.

Can we work around this without patching immediately?

Partial mitigations include disabling or restricting cloud profile page access via reverse proxy rules, enforcing strict IP-based access controls, and requiring additional authentication factors. However, these are temporary measures; patching to 2026.1.2 is the permanent fix.

Will upgrading to 2026.1.2 break our existing builds or integrations?

JetBrains typically maintains backward compatibility in patch releases. Test in a staging environment first, but no breaking changes are expected. Review the release notes for any agent configuration adjustments.

This intelligence is provided for informational purposes and does not constitute legal or professional security advice. Organizations must verify all patch versions, compatibility, and deployment procedures against JetBrains' official security advisories and release notes. SEC.co does not provide warranty regarding the accuracy or completeness of this analysis. Consult your security team and JetBrains support before implementing remediation. CVSS scores and threat assessments are derived from published vendor data and may be subject to interpretation and change. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).