Miggo Logo

CVE-2022-25873: Vuetify Cross-site Scripting vulnerability

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.42343%
Published
9/19/2022
Updated
1/30/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
vuetifynpm>= 2.0.0-beta.4, < 2.6.102.6.10
org.webjars.npm:vuetifymaven>= 2.0.0-beta.4, < 2.6.102.6.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key functions:

  1. eventNameFunction: It returned user-controlled data (event.input) after applying escapeHTML, which may not fully neutralize all XSS vectors. When users provided a custom eventName function, it bypassed even this partial sanitization.
  2. genName: It directly injected the output of eventNameFunction into the DOM via innerHTML, creating an XSS vector. The fix replaced innerHTML with Vue's VNode rendering, which inherently sanitizes content. The commit diff confirms these changes: removal of escapeHTML, replacement of HTML strings with VNodes, and modification of genName to avoid innerHTML.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** p**k*** vu*ti*y *rom *.*.*-**t*.* *n* ***or* *.*.** *r* vuln*r**l* to *ross-sit* S*riptin* (XSS) *u* to improp*r input s*nitiz*tion in t** '*v*ntN*m*' *un*tion wit*in t** V**l*n**r *ompon*nt.

Reasoning

T** vuln*r**ility st*ms *rom two k*y *un*tions: *. ***v*ntN*m**un*tion**: It r*turn** us*r-*ontroll** **t* (*v*nt.input) **t*r *pplyin* *s**p**TML, w*i** m*y not *ully n*utr*liz* *ll XSS v**tors. W**n us*rs provi*** * *ustom *v*ntN*m* *un*tion, it *y