Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2022-34176

CVE-2022-34176: Jenkins JUnit Plugin XSS Vulnerability

CVE-2022-34176 is a stored XSS vulnerability in Jenkins JUnit Plugin that allows attackers with Run/Update permission to exploit unescaped test result descriptions. This article covers technical details, affected versions, impact, and mitigation.

Published: February 18, 2026

CVE-2022-34176 Overview

CVE-2022-34176 is a stored cross-site scripting (XSS) vulnerability affecting the Jenkins JUnit Plugin version 1119.va_a_5e9068da_d7 and earlier. The vulnerability stems from improper sanitization of test result descriptions, allowing attackers with Run/Update permission to inject malicious scripts that execute in the context of other users' browsers when they view the affected test results.

Critical Impact

Attackers with Run/Update permission can inject persistent malicious JavaScript into test result descriptions, potentially leading to session hijacking, credential theft, or further compromise of the Jenkins environment.

Affected Products

  • Jenkins JUnit Plugin version 1119.va_a_5e9068da_d7 and earlier
  • Jenkins environments utilizing the JUnit Plugin for test result visualization
  • CI/CD pipelines incorporating JUnit test reporting

Discovery Timeline

  • 2022-06-22 - Jenkins project releases Security Advisory #2022-06-22
  • 2022-06-23 - CVE-2022-34176 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-34176

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The Jenkins JUnit Plugin fails to properly escape user-controlled content within test result descriptions before rendering them in the web interface. Since these descriptions persist in the Jenkins database and are displayed to any user viewing the test results, this constitutes a stored XSS vulnerability rather than a reflected one.

The attack requires authenticated access with Run/Update permissions, which are commonly granted to developers and build engineers in Jenkins environments. Once exploited, the malicious payload executes in the security context of any user who subsequently views the compromised test results, including administrators with elevated privileges.

Root Cause

The root cause is insufficient output encoding in the JUnit Plugin's test result rendering logic. When test descriptions are displayed in the Jenkins web interface, HTML entities and JavaScript code are not properly escaped, allowing raw HTML and script content to be interpreted by the browser. This violates the security principle of treating all user input as potentially malicious and encoding output appropriately for the context in which it appears.

Attack Vector

The attack vector is network-based and requires low privileges (Run/Update permission) combined with user interaction—a victim must view the affected test results page. An attacker can craft a malicious test result description containing JavaScript payloads. When submitted through the normal Jenkins workflow or API, these payloads are stored and later executed when other users, including administrators, view the test results.

Exploitation typically involves injecting payloads that steal session cookies, perform actions on behalf of the victim, or redirect users to phishing pages. The changed scope in the CVSS vector indicates that the vulnerability can impact resources beyond the vulnerable component itself, such as the user's browser session and potentially other Jenkins security boundaries.

Detection Methods for CVE-2022-34176

Indicators of Compromise

  • Unusual JavaScript or HTML tags appearing in JUnit test result descriptions
  • Test descriptions containing <script>, <iframe>, <img onerror>, or other common XSS payloads
  • Jenkins audit logs showing modifications to test results from unexpected sources
  • Reports of unusual browser behavior when viewing Jenkins test results

Detection Strategies

  • Implement web application firewall (WAF) rules to detect XSS patterns in requests to Jenkins
  • Monitor Jenkins audit logs for Run/Update actions on test results from unauthorized or suspicious sources
  • Deploy browser-based Content Security Policy (CSP) headers to mitigate script execution
  • Conduct periodic security scans of Jenkins plugins for known vulnerabilities

Monitoring Recommendations

  • Enable detailed logging for Jenkins plugin activities and user actions
  • Set up alerts for modification of test result data outside normal build processes
  • Monitor network traffic for exfiltration attempts originating from the Jenkins web interface
  • Regularly review Jenkins user permissions to ensure principle of least privilege

How to Mitigate CVE-2022-34176

Immediate Actions Required

  • Upgrade the Jenkins JUnit Plugin to a version newer than 1119.va_a_5e9068da_d7 immediately
  • Review existing test results for potentially malicious content injected prior to patching
  • Audit user accounts with Run/Update permissions and restrict access where possible
  • Implement Content Security Policy headers to reduce XSS impact as a defense-in-depth measure

Patch Information

Jenkins has addressed this vulnerability in versions of the JUnit Plugin released after 1119.va_a_5e9068da_d7. Organizations should update to the latest available version through the Jenkins Plugin Manager or by downloading directly from the Jenkins Plugin Repository. Refer to the Jenkins Security Advisory #2022-06-22 for complete details on the fix.

Workarounds

  • Restrict Run/Update permissions to only trusted users until the patch can be applied
  • Review and sanitize any existing test result descriptions that may contain untrusted input
  • Enable Jenkins security hardening features such as CSRF protection and secure cookie flags
  • Consider implementing a reverse proxy with XSS filtering capabilities in front of Jenkins
bash
# Update JUnit Plugin via Jenkins CLI
java -jar jenkins-cli.jar -s http://your-jenkins-server/ install-plugin junit -restart

# Alternatively, update via the Plugin Manager UI:
# Navigate to: Manage Jenkins > Manage Plugins > Updates
# Select JUnit Plugin and click "Download now and install after restart"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJenkins

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability61.91%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • Jenkins Security Advisory #2022-06-22
  • 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-27898: 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