CVE-2022-29045 Stored Cross-site Scripting vulnerability in Jenkins Promoted Builds Plugin

Medium 5.4 Published Updated

Attackers with Item/Configure permission can inject malicious scripts via promoted build parameters, leading to stored XSS in Jenkins views.

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-29045?

CVE-2022-29045 is a medium-severity cross-site scripting vulnerability in Jenkins promoted builds 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 promoted builds Plugin 873.v6149db_d64130 and earlier, except 3.10.1, does not escape the name and description of Promoted Build 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-29045?

4 open source packages ship an affected version, including org.jenkins-ci.plugins:promoted-builds. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:promoted-builds MavenAll versions3.10.1
org.jenkins-ci.plugins:promoted-builds MavenAll versions3.10.1
org.jenkins-ci.plugins:promoted-builds MavenFrom 3.11876.v99d29788b
org.jenkins-ci.plugins:promoted-builds MavenFrom 3.11876.v99d29788b

Products include Jenkins Promoted Builds.

How do I fix CVE-2022-29045?

Upgrade org.jenkins-ci.plugins:promoted-builds to a fixed version for your release line: 3.10.1 or 876.v99d29788b.

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-29045 being exploited?

There is no known exploitation of CVE-2022-29045 in the wild and no public exploit code.

Sources

Also known as GHSA-v98r-gjgc-m9pf.

Is CVE-2022-29045 in your software?

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

Check your SBOMs for free