CVE-2022-45380 Jenkins JUnit Plugin subject to Cross-site Scripting via URL conversion
Attackers with Item/Configure permission can inject malicious scripts via test report URLs, leading to stored XSS in Jenkins.
- 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-2022-45380?
CVE-2022-45380 is a medium-severity cross-site scripting vulnerability in Jenkins JUnit Plugin, published on 15 Nov 2022. 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 1159.v0b_396e1e07dd and earlier converts HTTP(S) URLs in test report output to clickable links in an unsafe manner, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.
Weakness: CWE-79
Which versions are affected by CVE-2022-45380?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:junit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:junit Maven | All versions | 1160.vf1f01a_a_ea_b_7f |
org.jenkins-ci.plugins:junit Maven | All versions | 1160.vf1f01a_a_ea_b_7f |
Products include Jenkins Junit.
How do I fix CVE-2022-45380?
Upgrade org.jenkins-ci.plugins:junit to 1160.vf1f01a_a_ea_b_7f 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-2022-45380 being exploited?
There is no known exploitation of CVE-2022-45380 in the wild and no public exploit code.
Other vulnerabilities in Jenkins JUnit Plugin
Sources
Also known as GHSA-298r-5c48-7q2r.