CVE-2022-34787 Jenkins Project Inheritance Plugin vulnerable to cross site scripting

Medium 5.4 Published Updated

Attackers can inject malicious scripts into Jenkins build block reason tooltips, 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
None listed

What is CVE-2022-34787?

CVE-2022-34787 is a medium-severity cross-site scripting vulnerability in Jenkins Project Inheritance Plugin, published on 30 Jun 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 Project Inheritance Plugin 21.04.03 and earlier does not escape the reason a build is blocked in tooltips, resulting in a cross-site scripting (XSS) vulnerability exploitable by attackers able to control the reason a queue item is blocked.

Weakness: CWE-79

Which versions are affected by CVE-2022-34787?

2 open source packages ship an affected version, including hudson.plugins:project-inheritance. It affects 1 product.

PackageAffectedFixed in
hudson.plugins:project-inheritance MavenAll versions to 21.04.03None
hudson.plugins:project-inheritance MavenAll versions to 21.04.03None

Products include Jenkins Project Inheritance.

How do I fix CVE-2022-34787?

No fix has been published for CVE-2022-34787 yet. Limit exposure of the affected software until one is available.

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

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

Sources

Also known as GHSA-3hx4-285w-v6mm.

Is CVE-2022-34787 in your software?

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

Check your SBOMs for free