CVE-2020-2140 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in org.jenkins-ci.plugins:audit-trail. EPSS puts its 30-day exploitation probability at 76.0% (100th percentile). A fix is available for org.jenkins-ci.plugins:audit-trail — see the affected versions and patch details below.
XSS vulnerability in Jenkins Audit Trail Plugin
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.jenkins-ci.plugins:audit-trailReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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. Audit Trail Plugin 3.3 escapes the affected part of the error message.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jenkins-ci.plugins:audit-trail | all versions | 3.3org.jenkins-ci.plugins:audit-trail:3.3 |
Affected Products
audit trailjenkinsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jenkins-ci.plugins:audit-trail, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.jenkins-ci.plugins:audit-trail to 3.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-2140 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
How to detect CVE-2020-2140
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2020-2140 -u https://target- Template
- Jenkin Audit Trail <=3.2 - Cross-Site Scripting
- Severity
- medium
- Impact
- Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the application, leading to potential data theft, session hijacking, or defacement.
- Remediation
- Upgrade to the latest version of Jenkin Audit Trail (>=3.3) which includes a fix for this vulnerability.
Template by ProjectDiscovery nuclei-templates (j3ssie/geraldino2), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2020-2140 in your dependencies?
Find it across Maven, including transitive dependencies.