CVE-2020-2106 Stored XSS vulnerability in Code Coverage API Plugin

Medium 5.4 Published Updated

Stored XSS in Jenkins Code Coverage API Plugin allows attackers with job configuration access to execute scripts in victim browsers.

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-2020-2106?

CVE-2020-2106 is a medium-severity cross-site scripting vulnerability in Jenkins Code Coverage API Plugin, published on 29 Jan 2020. 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 Code Coverage API Plugin 1.1.2 and earlier does not escape the filename of the coverage report used in its view, resulting in a stored XSS vulnerability exploitable by users able to change job configurations.

Weakness: CWE-79

Which versions are affected by CVE-2020-2106?

2 open source packages ship an affected version, including io.jenkins.plugins:code-coverage-api. It affects 1 product.

PackageAffectedFixed in
io.jenkins.plugins:code-coverage-api MavenAll versions1.1.3
io.jenkins.plugins:code-coverage-api MavenAll versions1.1.3

Products include Jenkins Code Coverage Api.

How do I fix CVE-2020-2106?

Upgrade io.jenkins.plugins:code-coverage-api to 1.1.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-2020-2106 being exploited?

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

Sources

Also known as GHSA-xg77-xqhq-crpr.

Is CVE-2020-2106 in your software?

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

Check your SBOMs for free