CVE-2022-29036 Cross-site Scripting in Jenkins Credentials Plugin

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
org.jenkins-ci.plugins:credentials MavenAll versions2.6.1.1
org.jenkins-ci.plugins:credentials MavenAll versions2.6.1.1
org.jenkins-ci.plugins:credentials MavenFrom 1087.v16065d2684661087.1089.v2f1b_9a_b_040e4
org.jenkins-ci.plugins:credentials MavenFrom 1087.v16065d2684661087.1089.v2f1b_9a_b_040e4
org.jenkins-ci.plugins:credentials MavenFrom 1105 to 1111.v35aNone
org.jenkins-ci.plugins:credentials MavenFrom 1105 to 1111.v35aNone
2 more packages
org.jenkins-ci.plugins:credentials MavenFrom 2.6.21074.1076.v39c30cecb_0e2
org.jenkins-ci.plugins:credentials MavenFrom 2.6.21074.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.

Sources

Also known as GHSA-rvg5-f5fj-mxvg.

Is CVE-2022-29036 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free