CVE-2021-32850:
@claviska/jquery-minicolors vulnerable to Cross-site Scripting
6.1
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
2/21/2023
Updated
6/12/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@claviska/jquery-minicolors | npm | < 2.3.6 | 2.3.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe HTML construction in swatch creation. The pre-patch code used string concatenation with $('<li...title="' + name + '">') which allowed HTML injection. The fix moved to .attr('title', name) which properly handles escaping. This code was part of the swatch initialization process when handling user-provided color names, making this the vulnerable function.