CVE-2021-21608:
Stored XSS vulnerability in Jenkins button labels
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56428%
CWE
Published
5/24/2022
Updated
12/14/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.main:jenkins-core | maven | < 2.263.1 | 2.275 |
org.jenkins-ci.main:jenkins-core | maven | >= 2.263.2, <= 2.274 | 2.275 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unescaped button label rendering in multiple UI components. Key evidence comes from the patch:- 1) hetero-list.js added title.escapeHTML() for menu options, 2) add-item.js switched to safe text node creation for labels, and 3) hudson-behavior.js added escaping for button labels. These components handled user-controlled labels without proper escaping in their original implementations, making them entry points for XSS payloads in button labels.