CVE-2022-41225 Jenkins Anchore Container Image Scanner Plugin vulnerable to cross site scripting
Stored XSS in Jenkins Anchore plugin allows attackers controlling API responses to execute scripts in user sessions.
- 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-41225?
CVE-2022-41225 is a medium-severity cross-site scripting vulnerability in Jenkins Anchore Container Image Scanner Plugin, published on 21 Sep 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 Anchore Container Image Scanner Plugin 1.0.24 and earlier does not escape content provided by the Anchore engine API, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control API responses by Anchore engine.
Weakness: CWE-79
Which versions are affected by CVE-2022-41225?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:anchore-container-scanner. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:anchore-container-scanner Maven | All versions | 1.0.25 |
org.jenkins-ci.plugins:anchore-container-scanner Maven | All versions | 1.0.25 |
Products include Jenkins Anchore Container Image Scanner.
How do I fix CVE-2022-41225?
Upgrade org.jenkins-ci.plugins:anchore-container-scanner to 1.0.25 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-41225 being exploited?
There is no known exploitation of CVE-2022-41225 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Anchore Container Image Scanner Plugin
Sources
Also known as GHSA-f2j5-w76m-3rqh.