CVE-2020-2112: Jenkins Git Parameter Plugin Stored XSS Vulnerability

Summary

24/05/2022
Yes i
Moderate
5.4

CVE-2020-2112: Jenkins Git Parameter Plugin vulnerable to Stored cross-site scripting (XSS). Affects org.jenkins-ci.tools:git-parameter versions < 0.9.12. Fixed in 0.9.12. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Jenkins Git Parameter Plugin is a Maven package (org.jenkins-ci.tools:git-parameter) that provides functionality for integrating Git repositories with Jenkins. It allows users to define parameters for Jenkins jobs that are populated with Git branch names, tags, or revisions. These parameters can be used to customize job behavior and enable dynamic configuration. However, versions 0.9.11 and earlier of the plugin are vulnerable to a stored cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability in the Jenkins Git Parameter Plugin arises from a failure to properly escape the parameter name displayed on the user interface. This allows an attacker with Job/Configure permission to inject malicious JavaScript code into the parameter name, which is then stored and executed when the parameter is rendered on the UI. As a result, an attacker can exploit this vulnerability to execute arbitrary code in the context of other users who view or interact with the affected Jenkins job. The impact of this vulnerability can range from stealing sensitive information to performing actions on behalf of the victim user.

How To Fix

Minimum fixed version

0.9.12

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the latest version of the Jenkins Git Parameter Plugin as soon as possible.

Conclusion

The Jenkins Git Parameter Plugin versions 0.9.11 and earlier are vulnerable to a stored cross-site scripting (XSS) attack. This can allow an attacker to execute arbitrary code in the context of other users, potentially leading to the theft of sensitive information or unauthorized actions. It is crucial for users to upgrade to version 0.9.12 or later of the plugin to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.tools:git-parameter →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code in the context of other users who view or interact with the affected Jenkins job. This can lead to the theft of sensitive information or unauthorized actions performed on behalf of the victim user.

Users of Jenkins Git Parameter Plugin versions 0.9.11 and earlier are affected by this vulnerability.

There are no known public exploits for this vulnerability at the time of this report. However, it is advisable to upgrade to the latest version of the plugin to mitigate the risk.

Yes, users should upgrade to version 0.9.12 or later of the Jenkins Git Parameter Plugin to fix this vulnerability.

Users can update the plugin by following the standard procedure for updating Jenkins plugins. This typically involves accessing the Jenkins administration interface, navigating to the Manage Plugins section, and selecting the available updates for installation.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.tools:git-parameter.

How To Fix

Minimum fixed version

0.9.12

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback