Miggo Logo

CVE-2019-10374: Jenkins PegDown Formatter Plugin has Cross-site Scripting vulnerability

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.32165%
Published
5/24/2022
Updated
5/30/2024
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:pegdown-formattermaven<= 1.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper URL scheme validation in Markdown link rendering. While the plugin disables raw HTML to prevent XSS, it doesn't filter 'javascript:' URIs in link href attributes. This indicates the function responsible for parsing/rendering Markdown links (likely using PegDown's LinkRenderer or similar component) lacks protocol whitelisting. The high confidence comes from the advisory explicitly stating the root cause is missing 'javascript:' scheme blocking in link URLs, a classic XSS vector when URI scheme validation is absent.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

P***own *orm*tt*r Plu*in us*s t** P***own li*r*ry to impl*m*nt support *or r*n**rin* M*rk*own *orm*tt** **s*riptions in J*nkins. It **v*rtis*s *is**lin* o* *TML to pr*v*nt *ross-sit* s*riptin* (XSS) *s * ***tur*. P***own *orm*tt*r Plu*in *o*s not pr

Reasoning

T** vuln*r**ility st*ms *rom improp*r URL s***m* v*li**tion in M*rk*own link r*n**rin*. W*il* t** plu*in *is**l*s r*w *TML to pr*v*nt XSS, it *o*sn't *ilt*r 'j*v*s*ript:' URIs in link *r** *ttri*ut*s. T*is in*i**t*s t** `*un*tion` r*sponsi*l* *or p*r