CVE-2020-2113: Jenkins Git Parameter Plugin vulnerable to stored cross-site scripting (XSS)
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.32165%
CWE
Published
5/24/2022
Updated
12/13/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.tools:git-parameter | maven | <= 0.9.11 | 0.9.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability arises from improper escaping of user-controlled values (parameter name and default value) in the UI. The commit diff shows critical fixes: 1) In GitParameterDefinition.java
, getDivUUID
originally used unsanitized names for div IDs, risking DOM-based XSS. 2) In git-parameter.js
, the QuickFilter
constructor directly injected defaultValue
into JavaScript without escaping, enabling script execution. The patch mitigates these by sanitizing the name and using data attributes to safely pass values. These functions directly handled untrusted input without proper escaping, making them the root causes.