CVE-2022-46686 Jenkins Custom Build Properties Plugin vulnerable to Cross-site Scripting
Stored XSS in Jenkins Custom Build Properties Plugin allows attackers to inject scripts via property values or build names, potentially compromising user sessions.
- 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-46686?
CVE-2022-46686 is a medium-severity cross-site scripting vulnerability in Jenkins Custom Build Properties Plugin, published on 7 Dec 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 Custom Build Properties Plugin 2.79.vc095ccc85094 and earlier does not escape property values and build display names on the Custom Build Properties and Build Summary pages, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to set or change these values.
Weakness: CWE-79
Which versions are affected by CVE-2022-46686?
2 open source packages ship an affected version, including io.jenkins.plugins:custom-build-properties. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:custom-build-properties Maven | All versions | 2.82.v16d5b |
io.jenkins.plugins:custom-build-properties Maven | All versions | 2.82.v16d5b |
Products include Jenkins Custom Build Properties.
How do I fix CVE-2022-46686?
Upgrade io.jenkins.plugins:custom-build-properties to 2.82.v16d5b 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-46686 being exploited?
There is no known exploitation of CVE-2022-46686 in the wild and no public exploit code.
Sources
Also known as GHSA-5g2c-j6v9-vf94.