CVE-2021-21668:
Stored XSS vulnerability in Jenkins Scriptler Plugin
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.78495%
CWE
Published
1/6/2022
Updated
10/27/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.plugins:scriptler | maven | < 3.2 | 3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped script content in the UI. Jenkins plugins typically use Jelly templates for rendering, and the advisory specifically mentions content escaping was added in 3.2. The most likely vulnerable components are: 1) The UI template rendering script content (Jelly file) which lacked escaping tags like st:escape or <j:out>, and 2) The backend logic in ScriptlerManagement
that serves unescaped content to these templates. High confidence comes from the pattern of XSS vulnerabilities in Jenkins plugins typically being in Jelly templates and the explicit mention of content escaping in the fix description.