CVE-2023-27898
Java vulnerability analysis and mitigation

Overview

A stored cross-site scripting (XSS) vulnerability was discovered in Jenkins versions 2.270 through 2.393 and LTS 2.277.1 through 2.375.3. The vulnerability (CVE-2023-27898) exists because Jenkins does not escape the Jenkins version a plugin depends on when rendering error messages about plugin incompatibility in the plugin manager. This vulnerability was discovered and reported by Ilay Goldman and Yakir Kadkoda from Aqua Security (Jenkins Advisory).

Technical details

The vulnerability occurs in the plugin manager when rendering error messages about plugin incompatibility with the current Jenkins version. The issue stems from insufficient sanitization of plugin version dependencies, which allows for stored XSS attacks. The vulnerability has been assigned a High severity CVSS rating. Exploitation does not require the manipulated plugin to be installed, but requires attackers to be able to provide plugins to the configured update sites and have the error message shown by Jenkins instances (Jenkins Advisory).

Impact

The vulnerability allows attackers who can provide plugins to configured update sites to execute arbitrary JavaScript code in the context of users viewing the plugin manager. However, due to how Jenkins community update sites serve plugin metadata based on reported Jenkins core versions, it is unlikely that reasonably up-to-date Jenkins instances would show the vulnerable error message (Jenkins Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Jenkins 2.394, LTS 2.375.4, and LTS 2.387.1, which properly escape the Jenkins version when rendering plugin incompatibility error messages. Additionally, Jenkins community update sites no longer publish plugin releases with invalid Jenkins core dependencies since 2023-02-15, preventing exploitation through official update sites even on older Jenkins versions (Jenkins Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66516CRITICAL10
  • JavaJava
  • tika
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management