The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2023-27898

CVE-2023-27898: Jenkins Stored XSS Vulnerability

CVE-2023-27898 is a stored XSS vulnerability in Jenkins that occurs when rendering plugin incompatibility error messages. Attackers can exploit this by providing malicious plugins to update sites. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: February 11, 2026

CVE-2023-27898 Overview

CVE-2023-27898 is a stored cross-site scripting (XSS) vulnerability affecting Jenkins, the widely-used open-source automation server. The vulnerability exists because Jenkins fails to properly escape the Jenkins version string that a plugin depends on when rendering error messages about plugin incompatibility with the current Jenkins version. This flaw allows attackers who can provide plugins to configured update sites to inject malicious scripts that execute when Jenkins administrators view the incompatibility error message.

Critical Impact

This stored XSS vulnerability can enable attackers to execute arbitrary JavaScript in the context of authenticated Jenkins administrators, potentially leading to credential theft, session hijacking, or complete compromise of the Jenkins environment and connected CI/CD pipelines.

Affected Products

  • Jenkins 2.270 through 2.393 (weekly releases)
  • Jenkins LTS 2.277.1 through 2.375.3
  • Any Jenkins instance configured to use update sites controlled or influenced by attackers

Discovery Timeline

  • 2023-03-08 - Jenkins publishes security advisory SECURITY-3037
  • 2023-03-10 - CVE-2023-27898 published to NVD
  • 2025-02-28 - Last updated in NVD database

Technical Details for CVE-2023-27898

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting). The flaw resides in Jenkins' plugin management functionality, specifically in how the application renders error messages when a plugin declares a dependency on a specific Jenkins version that is incompatible with the currently running instance.

When Jenkins displays these incompatibility error messages to administrators, it includes the version string specified by the plugin without proper HTML encoding or sanitization. This creates an injection point where malicious content embedded in the version string is rendered as executable HTML/JavaScript rather than being safely displayed as text.

The attack requires that an adversary has the ability to provide plugins to update sites that the target Jenkins instance is configured to use. This could occur through compromise of official or third-party update sites, man-in-the-middle attacks on update channels, or through social engineering administrators to add malicious update site URLs.

Root Cause

The root cause is insufficient output encoding in the Jenkins UI rendering code. When constructing the error message for plugin version incompatibility, the application directly interpolates the version string from the plugin manifest into the HTML output without applying proper escaping functions. This violates secure coding principles that require all dynamic content to be contextually encoded before being rendered in web pages.

Attack Vector

The attack follows a supply-chain-style exploitation pattern:

  1. Plugin Preparation: The attacker creates or modifies a malicious plugin that declares a dependency on a specially crafted Jenkins "version" string containing XSS payloads
  2. Distribution: The malicious plugin is distributed through an update site that the target Jenkins instance trusts or can be tricked into trusting
  3. Trigger: When a Jenkins administrator browses available plugins or updates, Jenkins attempts to validate the plugin's dependencies
  4. Execution: Upon detecting the version incompatibility, Jenkins renders an error message containing the unescaped malicious version string, causing the XSS payload to execute in the administrator's browser

The stored nature of this XSS means the payload persists and can execute multiple times whenever the affected error message is displayed, increasing the attack's impact and reliability.

Detection Methods for CVE-2023-27898

Indicators of Compromise

  • Unusual JavaScript execution or browser behavior when accessing Jenkins plugin management pages
  • Unexpected outbound network connections from administrator browsers while viewing Jenkins
  • Modified Jenkins configurations, credentials, or user accounts that cannot be attributed to legitimate administrator actions
  • Plugin entries in update site metadata containing HTML tags, script elements, or JavaScript event handlers in version fields

Detection Strategies

  • Review Jenkins access logs for anomalous patterns of plugin management page access
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Monitor update site configurations for unauthorized changes or additions of untrusted sources
  • Deploy web application firewalls capable of detecting XSS payload patterns in HTTP responses

Monitoring Recommendations

  • Enable detailed audit logging for all Jenkins administrative actions and configuration changes
  • Configure browser-based XSS protection mechanisms and monitor for triggered alerts
  • Establish baseline behavior for plugin management activities and alert on deviations
  • Monitor for changes to Jenkins security realm configurations or credential stores

How to Mitigate CVE-2023-27898

Immediate Actions Required

  • Upgrade Jenkins weekly releases to version 2.394 or later immediately
  • Upgrade Jenkins LTS installations to version 2.375.4 or later
  • Audit all configured update sites and remove any untrusted or unnecessary sources
  • Review recent administrative activities for signs of compromise following any suspected exposure

Patch Information

Jenkins has released patched versions that properly escape version strings when rendering plugin incompatibility error messages. The fix is included in:

  • Jenkins weekly release 2.394 and later
  • Jenkins LTS 2.375.4 and later

Administrators should apply these updates as soon as possible. The official Jenkins Security Advisory 2023-03-08 provides complete details about this vulnerability and the remediation.

Workarounds

  • Restrict update site configurations to only the official Jenkins update center until patching is complete
  • Limit network access from Jenkins instances to prevent connections to potentially malicious update sites
  • Implement strict Content Security Policy headers on the Jenkins web interface to mitigate XSS impact
  • Consider temporary restrictions on access to plugin management functionality for non-essential administrators
bash
# Verify current Jenkins version
java -jar jenkins.war --version

# Check configured update sites (from Jenkins script console)
# Navigate to: Manage Jenkins > Script Console
# jenkins.model.Jenkins.instance.updateCenter.sites.each { println it.url }

# After upgrading, verify the new version
# The patched versions are: Weekly >= 2.394, LTS >= 2.375.4

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJenkins

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability2.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Vendor Resources
  • Jenkins Security Advisory 2023-03-08
  • Related CVEs
  • CVE-2026-27099: Jenkins Stored XSS Vulnerability

  • CVE-2025-53658: Jenkins Applitools Eyes XSS Vulnerability

  • CVE-2023-27905: Jenkins Update-center2 XSS Vulnerability

  • CVE-2023-39151: Jenkins Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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