CVE-2023-25761 Cross-site Scripting in Jenkins JUnit Plugin

Medium 5.4 Published Updated

Attackers can inject malicious scripts via test case class names, leading to stored XSS in Jenkins JUnit Plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-25761?

CVE-2023-25761 is a medium-severity cross-site scripting vulnerability in Jenkins JUnit Plugin, published on 15 Feb 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Jenkins JUnit Plugin 1166.va_436e268e972 and earlier does not escape test case class names in JavaScript expressions, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control test case class names in the JUnit resources processed by the plugin.

Weakness: CWE-79

Which versions are affected by CVE-2023-25761?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:junit. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:junit MavenAll versions1166.1168.vd6b_8042a_06de
org.jenkins-ci.plugins:junit MavenAll versions1166.1168.vd6b_8042a_06de

Products include Jenkins Junit.

How do I fix CVE-2023-25761?

Upgrade org.jenkins-ci.plugins:junit to 1166.1168.vd6b_8042a_06de or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-25761 being exploited?

There is no known exploitation of CVE-2023-25761 in the wild and no public exploit code.

Sources

Also known as GHSA-ph74-8rgx-64c5.

Is CVE-2023-25761 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free