CVE-2022-25873: Vuetify Cross-site Scripting vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42343%
CWE
Published
9/19/2022
Updated
1/30/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
vuetify | npm | >= 2.0.0-beta.4, < 2.6.10 | 2.6.10 |
org.webjars.npm:vuetify | maven | >= 2.0.0-beta.4, < 2.6.10 | 2.6.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key functions:
- 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.
- 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.