A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-49371

CVE-2026-49371: JetBrains TeamCity XSS Vulnerability

CVE-2026-49371 is a reflected cross-site scripting vulnerability in JetBrains TeamCity's keyword filter that enables attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-49371 Overview

CVE-2026-49371 is a reflected cross-site scripting (XSS) vulnerability in JetBrains TeamCity versions before 2026.1.1. The flaw exists in the keyword filter component, which fails to properly sanitize user-supplied input before reflecting it back in HTTP responses. Attackers can craft malicious URLs containing JavaScript payloads that execute in a victim's browser when followed. Because TeamCity is a continuous integration and deployment (CI/CD) platform, successful exploitation can expose build configurations, source code references, and pipeline credentials. The vulnerability is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Attackers can hijack authenticated TeamCity sessions, steal build secrets, and pivot into connected source code repositories by tricking users into clicking crafted URLs.

Affected Products

  • JetBrains TeamCity versions prior to 2026.1.1
  • TeamCity on-premises self-hosted deployments
  • TeamCity instances exposing the keyword filter interface to authenticated or unauthenticated users

Discovery Timeline

  • 2026-05-29 - CVE-2026-49371 published to NVD
  • 2026-06-02 - Last updated in NVD database

Technical Details for CVE-2026-49371

Vulnerability Analysis

The vulnerability stems from improper output encoding in the keyword filter feature of TeamCity. When a user submits a search keyword, the application reflects the value back into the rendered HTML response without applying contextual escaping. An attacker who controls the keyword parameter can inject arbitrary HTML or JavaScript that executes in the browser of any user who loads the crafted URL.

Reflected XSS in a CI/CD platform carries significant downstream risk. TeamCity stores VCS credentials, deployment tokens, and artifact repository keys accessible to authenticated build administrators. An attacker who lands script execution in an administrator's browser can issue API requests on their behalf, exfiltrate build logs, or modify build configurations to inject malicious code into downstream releases.

Exploitation requires user interaction, as the victim must visit a crafted link. The scope is changed because the injected script executes in the security context of the TeamCity origin, allowing the attacker to read and modify resources beyond the initial vulnerable component.

Root Cause

The root cause is missing or insufficient HTML entity encoding when the keyword filter parameter is written into the response body. The component trusts client-supplied input and renders it directly into the DOM, violating the principle of contextual output encoding.

Attack Vector

The attack is delivered over the network. An attacker crafts a URL pointing to the vulnerable TeamCity endpoint with a malicious keyword payload. The attacker delivers this URL through phishing email, chat platforms, or a public web page. When an authenticated TeamCity user loads the URL, the payload executes within their session, enabling session token theft, CSRF-style API abuse, or further client-side attacks. Refer to the JetBrains Security Issues Fixed advisory for vendor-confirmed technical details.

Detection Methods for CVE-2026-49371

Indicators of Compromise

  • HTTP requests to TeamCity URLs containing encoded <script>, javascript:, or onerror= payloads in the keyword filter parameter
  • Outbound requests from TeamCity user browsers to attacker-controlled domains shortly after clicking external links
  • Anomalous API calls originating from administrator sessions, especially configuration changes or credential exports

Detection Strategies

  • Inspect web proxy and WAF logs for query strings containing HTML or JavaScript syntax targeting TeamCity endpoints
  • Correlate TeamCity audit log entries with browser referer headers to identify sessions initiated from suspicious external sources
  • Hunt for unusual session token reuse patterns or geographically inconsistent administrator logins following URL clicks

Monitoring Recommendations

  • Enable verbose HTTP request logging on the TeamCity reverse proxy and forward logs to a centralized SIEM
  • Alert on TeamCity API requests that modify build configurations or VCS connections outside of approved change windows
  • Monitor email and chat gateways for inbound URLs referencing TeamCity hostnames with suspicious query parameters

How to Mitigate CVE-2026-49371

Immediate Actions Required

  • Upgrade JetBrains TeamCity to version 2026.1.1 or later, where the keyword filter input is properly encoded
  • Rotate any VCS tokens, deployment keys, and administrator API tokens that may have been accessible during the exposure window
  • Restrict TeamCity administrative access to trusted network ranges using firewall or reverse proxy access control lists

Patch Information

JetBrains addressed CVE-2026-49371 in TeamCity 2026.1.1. Administrators should download the patched build from JetBrains and apply it according to the upgrade procedures documented at the JetBrains Security Issues Fixed page. Verify the running version after upgrade using the TeamCity diagnostics page or the /app/rest/server REST endpoint.

Workarounds

  • Place TeamCity behind a web application firewall configured to block reflected XSS patterns in query parameters
  • Enforce a strict Content Security Policy (CSP) via the reverse proxy to limit inline script execution in the TeamCity origin
  • Require administrators to access TeamCity only through isolated browser profiles that do not handle untrusted external links
bash
# Example nginx reverse proxy hardening for TeamCity
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'self';" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJetbrains Teamcity

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • JetBrains Security Issues Fixed
  • Related CVEs
  • CVE-2026-49375: JetBrains TeamCity XSS Vulnerability

  • CVE-2026-49381: JetBrains TeamCity XSS Vulnerability

  • CVE-2025-24459: JetBrains TeamCity XSS Vulnerability

  • CVE-2026-49373: JetBrains TeamCity RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English