CVE-2020-2096 Reflected XSS vulnerability in Jenkins gitlab-hook Plugin

Medium 6.1 Published Updated

Reflected XSS in Jenkins Gitlab Hook Plugin allows attackers to execute arbitrary scripts in victim browsers via unescaped project names.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2020-2096?

CVE-2020-2096 is a medium-severity cross-site scripting vulnerability in Jenkins Gitlab Hook Plugin, published on 15 Jan 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Jenkins Gitlab Hook Plugin 1.4.2 and earlier does not escape project names in the build_now endpoint, resulting in a reflected XSS vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2020-2096?

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

PackageAffectedFixed in
org.jenkins-ci.ruby-plugins:gitlab-hook MavenAll versions to 1.4.2None
org.jenkins-ci.ruby-plugins:gitlab-hook MavenAll versions to 1.4.2None

Products include Jenkins Gitlab Hook.

How do I fix CVE-2020-2096?

No fix has been published for CVE-2020-2096 yet. Limit exposure of the affected software until one is available.

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-2096 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-2096 exists.

Public exploit code: 1 Exploit-DB entry and 1 Nuclei template.

Sources

Also known as GHSA-8696-836p-c8qp.

Is CVE-2020-2096 in your software?

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

Check your SBOMs for free