CVE-2022-27196 Stored Cross-site Scripting vulnerability in Jenkins Favorite Plugin
Stored XSS in Jenkins Favorite Plugin allows attackers with configure permissions to inject scripts via job names, potentially leading to session hijacking or code execution.
- 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-27196?
CVE-2022-27196 is a medium-severity cross-site scripting vulnerability in Jenkins Favorite Plugin, published on 15 Mar 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 Favorite Plugin 2.4.0 and earlier does not escape the names of jobs in the favorite column, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure or Item/Create permissions.
Weakness: CWE-79
Which versions are affected by CVE-2022-27196?
2 open source packages ship an affected version, including org.jvnet.hudson.plugins:favorite. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jvnet.hudson.plugins:favorite Maven | All versions | 2.4.1 |
org.jvnet.hudson.plugins:favorite Maven | All versions | 2.4.1 |
Products include Jenkins Favorite.
How do I fix CVE-2022-27196?
Upgrade org.jvnet.hudson.plugins:favorite to 2.4.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-27196 being exploited?
There is no known exploitation of CVE-2022-27196 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Favorite Plugin
Sources
Also known as GHSA-874r-46c6-7p4r.