CVE-2022-28145 Cross-site Scripting (XSS) vulnerability in Jenkins Continuous Integration with Toad Edge Plugin

Medium 5.4 Published Updated

Attackers with configure permissions can inject scripts into report files, leading to stored XSS in Jenkins Toad Edge Plugin.

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

CVE-2022-28145 is a medium-severity cross-site scripting vulnerability in Jenkins Continuous Integration with Toad Edge Plugin, published on 29 Mar 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 Continuous Integration with Toad Edge Plugin 2.3 and earlier does not apply Content-Security-Policy headers to report files it serves, resulting in a stored cross-site scripting (XSS) exploitable by attackers with Item/Configure permission or otherwise able to control report contents.

Weakness: CWE-79

Which versions are affected by CVE-2022-28145?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:ci-with-toad-edge. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:ci-with-toad-edge MavenAll versions2.4
org.jenkins-ci.plugins:ci-with-toad-edge MavenAll versions2.4

Products include Jenkins Continuous Integration With Toad Edge.

How do I fix CVE-2022-28145?

Upgrade org.jenkins-ci.plugins:ci-with-toad-edge to 2.4 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-28145 being exploited?

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

Sources

Also known as GHSA-7jh8-ghwc-82cw.

Is CVE-2022-28145 in your software?

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

Check your SBOMs for free