CVE-2020-2140 XSS vulnerability in Jenkins Audit Trail Plugin

Medium 6.1 Published Updated

Reflected cross-site scripting in Jenkins Audit Trail Plugin allows attackers to execute arbitrary scripts in victim browsers via URL patterns.

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
Available

What is CVE-2020-2140?

CVE-2020-2140 is a medium-severity cross-site scripting vulnerability in Jenkins Audit Trail Plugin, published on 9 Mar 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 Audit Trail Plugin 3.2 and earlier does not escape the error message for the URL Patterns field form validation, resulting in a reflected cross-site scripting vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2020-2140?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:audit-trail MavenAll versions3.3
org.jenkins-ci.plugins:audit-trail MavenAll versions3.3

Products include Jenkins Audit Trail.

How do I fix CVE-2020-2140?

Upgrade org.jenkins-ci.plugins:audit-trail to 3.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-2140 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-cj2g-wwfv-mvjh.

Is CVE-2020-2140 in your software?

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

Check your SBOMs for free