Miggo Logo

CVE-2021-21668:
Stored XSS vulnerability in Jenkins Scriptler Plugin

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.78495%
Published
1/6/2022
Updated
10/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins:scriptlermaven< 3.23.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

J*nkins S*riptl*r Plu*in *.* *n* **rli*r *o*s not *s**p* s*ript *ont*nt. T*is r*sults in * stor** *ross-sit* s*riptin* (XSS) vuln*r**ility *xploit**l* *y *tt**k*rs wit* S*riptl*r/*on*i*ur* p*rmission. J*nkins S*riptl*r Plu*in *.* *s**p*s s*ript *on

Reasoning

T** vuln*r**ility st*ms *rom un*s**p** s*ript *ont*nt in t** UI. J*nkins plu*ins typi**lly us* J*lly t*mpl*t*s *or r*n**rin*, *n* t** **visory sp**i*i**lly m*ntions *ont*nt *s**pin* w*s ***** in *.*. T** most lik*ly vuln*r**l* *ompon*nts *r*: *) T**