CVE-2022-29036 Cross-site Scripting in Jenkins Credentials Plugin
Stored XSS in Jenkins Credentials Plugin allows attackers with Item/Configure permission to execute scripts via unescaped parameter names and descriptions.
- 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-29036?
CVE-2022-29036 is a medium-severity cross-site scripting vulnerability in Jenkins Credentials Plugin, published on 12 Apr 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 Credentials Plugin 1111.v35a_307992395 and earlier, except 1087.1089.v2f1b_9a_b_040e4, 1074.1076.v39c30cecb_0e2, and 2.6.1.1, does not escape the name and description of Credentials parameters on views displaying parameters, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.
Weakness: CWE-79
Which versions are affected by CVE-2022-29036?
8 open source packages ship an affected version, including org.jenkins-ci.plugins:credentials. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:credentials Maven | All versions | 2.6.1.1 |
org.jenkins-ci.plugins:credentials Maven | All versions | 2.6.1.1 |
org.jenkins-ci.plugins:credentials Maven | From 1087.v16065d268466 | 1087.1089.v2f1b_9a_b_040e4 |
org.jenkins-ci.plugins:credentials Maven | From 1087.v16065d268466 | 1087.1089.v2f1b_9a_b_040e4 |
org.jenkins-ci.plugins:credentials Maven | From 1105 to 1111.v35a | None |
org.jenkins-ci.plugins:credentials Maven | From 1105 to 1111.v35a | None |
2 more packages
org.jenkins-ci.plugins:credentials Maven | From 2.6.2 | 1074.1076.v39c30cecb_0e2 |
org.jenkins-ci.plugins:credentials Maven | From 2.6.2 | 1074.1076.v39c30cecb_0e2 |
Products include Jenkins Credentials.
How do I fix CVE-2022-29036?
Upgrade org.jenkins-ci.plugins:credentials to a fixed version for your release line: 2.6.1.1, 1087.1089.v2f1b_9a_b_040e4 or 1074.1076.v39c30cecb_0e2.
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-29036 being exploited?
There is no known exploitation of CVE-2022-29036 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Credentials Plugin
- CVE-2024-47805 Jenkins Credentials plugin reveals encrypted values of credentials to users with Extended Read permission
- CVE-2021-21648 Cross-Site Request Forgery in Jenkins Credentials Plugin
- CVE-2019-10320 Insertion of Sensitive Information into Externally-Accessible File or Directory in Jenkins Credentials Plugin
Sources
Also known as GHSA-rvg5-f5fj-mxvg.