CVE-2020-2226 Stored XSS vulnerability in Jenkins Matrix Authorization Strategy Plugin
Stored cross-site scripting in Jenkins Matrix Authorization Strategy Plugin allows attackers to execute arbitrary scripts in victim browsers via unescaped user names.
- 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-2020-2226?
CVE-2020-2226 is a medium-severity cross-site scripting vulnerability in Jenkins Matrix Authorization Strategy Plugin, published on 15 Jul 2020. 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 Matrix Authorization Strategy Plugin 2.6.1 and earlier does not escape user names shown in the configuration, resulting in a stored cross-site scripting vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2020-2226?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:matrix-auth. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:matrix-auth Maven | All versions | 2.6.2 |
org.jenkins-ci.plugins:matrix-auth Maven | All versions | 2.6.2 |
Products include Jenkins Matrix Authorization Strategy.
How do I fix CVE-2020-2226?
Upgrade org.jenkins-ci.plugins:matrix-auth to 2.6.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-2020-2226 being exploited?
There is no known exploitation of CVE-2020-2226 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Matrix Authorization Strategy Plugin
Sources
Also known as GHSA-vr6v-wjfw-rxcr.