CVE-2021-4243: Duplicate advisory: @claviska/jquery-minicolors vulnerable to Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
12/12/2022
Updated
2/22/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 string concatenation in swatch creation code shown in both the GitHub Security Lab advisory and the patch commit. The original code used '<span ... title="' + name + '">' which allowed HTML injection. The patch moved the title to a separate .attr() call which would enable proper escaping. The file path and attack vector are explicitly identified in multiple sources including the GHSL advisory and NVD references.