CVE-2022-43420 Stored XSS vulnerability in Jenkins Contrast Continuous Application Security Plugin

Medium 5.4 Published Updated

Stored XSS in Jenkins Contrast plugin allows attackers controlling API responses to execute scripts in 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-43420?

CVE-2022-43420 is a medium-severity cross-site scripting vulnerability in Jenkins Contrast Continuous Application Security Plugin, published on 19 Oct 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 Contrast Continuous Application Security Plugin 3.9 and earlier does not escape data returned from the Contrast service when generating a report, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control or modify Contrast service API responses.

Weakness: CWE-79

Which versions are affected by CVE-2022-43420?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:contrast-continuous-application-security. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:contrast-continuous-application-security MavenAll versions3.10
org.jenkins-ci.plugins:contrast-continuous-application-security MavenAll versions3.10

Products include Jenkins Contrast Continuous Application Security.

How do I fix CVE-2022-43420?

Upgrade org.jenkins-ci.plugins:contrast-continuous-application-security to 3.10 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-43420 being exploited?

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

Sources

Also known as GHSA-hvcr-927w-qcvq.

Is CVE-2022-43420 in your software?

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

Check your SBOMs for free