CVE-2020-2136 Improper Neutralization of Input During Web Page Generation in Jenkins Git Plugin

Medium 5.4 Published Updated

Stored cross-site scripting in Jenkins Git Plugin allows attackers to inject malicious scripts via repository URL validation, 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-2020-2136?

CVE-2020-2136 is a medium-severity cross-site scripting vulnerability in Jenkins Git Plugin, published on 9 Mar 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 Git Plugin 4.2.0 and earlier does not escape the error message for the repository URL for Microsoft TFS field form validation, resulting in a stored cross-site scripting vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2020-2136?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:git MavenAll versions4.2.1
org.jenkins-ci.plugins:git MavenAll versions4.2.1

Products include Jenkins Git.

How do I fix CVE-2020-2136?

Upgrade org.jenkins-ci.plugins:git to 4.2.1 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-2136 being exploited?

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

Sources

Also known as GHSA-6c7r-6p5m-cp82.

Is CVE-2020-2136 in your software?

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

Check your SBOMs for free