CVE-2022-45382 Cross-site Scripting in Jenkins Naginator Plugin
Stored XSS in Jenkins Naginator Plugin allows attackers with build name edit rights to execute scripts in victim browsers.
- 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-45382?
CVE-2022-45382 is a medium-severity cross-site scripting vulnerability in Jenkins Naginator 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 Naginator Plugin 1.18.1 and earlier does not escape display names of source builds in builds that were triggered via Retry action, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to edit build display names.
Weakness: CWE-79
Which versions are affected by CVE-2022-45382?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:naginator. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:naginator Maven | All versions | 1.18.2 |
org.jenkins-ci.plugins:naginator Maven | All versions | 1.18.2 |
Products include Jenkins Naginator.
How do I fix CVE-2022-45382?
Upgrade org.jenkins-ci.plugins:naginator to 1.18.2 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-45382 being exploited?
There is no known exploitation of CVE-2022-45382 in the wild and no public exploit code.
Sources
Also known as GHSA-h8hf-hxx6-5g6v.