CVE-2022-27200 Stored Cross-site Scripting in folder-auth plugin
Stored XSS in Jenkins Folder-based Authorization Strategy Plugin allows attackers with admin permissions to execute scripts in other users' browsers.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-27200?
CVE-2022-27200 is a medium-severity cross-site scripting vulnerability in Jenkins Folder-based Authorization Strategy Plugin, published on 15 Mar 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
Jenkins Folder-based Authorization Strategy Plugin 1.3 and earlier does not escape the names of roles shown on the configuration form, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Overall/Administer permission.
Weakness: CWE-79
Which versions are affected by CVE-2022-27200?
2 open source packages ship an affected version, including io.jenkins.plugins:folder-auth. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:folder-auth Maven | All versions | 1.4 |
io.jenkins.plugins:folder-auth Maven | All versions | 1.4 |
Products include Jenkins Folder-Based Authorization Strategy.
How do I fix CVE-2022-27200?
Upgrade io.jenkins.plugins:folder-auth to 1.4 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-27200 being exploited?
There is no known exploitation of CVE-2022-27200 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Folder-based Authorization Strategy Plugin
Sources
Also known as GHSA-5vjc-qx43-r747.