CVE-2022-46684 Stored XSS vulnerability in Jenkins Checkmarx Plugin

Medium 5.4 Published Updated

Attackers can inject malicious scripts into Jenkins HTML reports via unescaped Checkmarx API responses, 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-46684?

CVE-2022-46684 is a medium-severity cross-site scripting vulnerability in Jenkins Checkmarx 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 Checkmarx Plugin 2022.3.3 and earlier does not escape values returned from the Checkmarx service API before inserting them into HTML reports, resulting in a stored cross-site scripting (XSS) vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2022-46684?

2 open source packages ship an affected version, including com.checkmarx.jenkins:checkmarx. It affects 1 product.

PackageAffectedFixed in
com.checkmarx.jenkins:checkmarx MavenAll versions2022.4.3
com.checkmarx.jenkins:checkmarx MavenAll versions2022.4.3

Products include Jenkins Checkmarx.

How do I fix CVE-2022-46684?

Upgrade com.checkmarx.jenkins:checkmarx to 2022.4.3 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-46684 being exploited?

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

Sources

Also known as GHSA-p86x-75j8-w4xh.

Is CVE-2022-46684 in your software?

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

Check your SBOMs for free