CVE-2022-46687 Cross-site Scripting in Jenkins Spring Config Plugin
Stored XSS in Jenkins Spring Config Plugin allows attackers with build name modification 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-46687?
CVE-2022-46687 is a medium-severity cross-site scripting vulnerability in Jenkins Spring Config Plugin, published on 7 Dec 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 Spring Config Plugin 2.0.0 and earlier does not escape build display names shown on the Spring Config view, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to change build display names.
Weakness: CWE-79
Which versions are affected by CVE-2022-46687?
2 open source packages ship an affected version, including io.jenkins.plugins:spring-config. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:spring-config Maven | All versions | 2.0.1 |
io.jenkins.plugins:spring-config Maven | All versions | 2.0.1 |
Products include Jenkins Spring Config.
How do I fix CVE-2022-46687?
Upgrade io.jenkins.plugins:spring-config to 2.0.1 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-46687 being exploited?
There is no known exploitation of CVE-2022-46687 in the wild and no public exploit code.
Sources
Also known as GHSA-3rrx-364r-6wf6.