CVE-2023-38687: Svelecte item names vulnerable to execution of arbitrary JavaScript
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.65312%
CWE
Published
8/14/2023
Updated
11/8/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| svelecte | npm | < 3.16.3 | 3.16.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe HTML rendering patterns in both default and custom item renderers. The core issue is the use of Svelte's {@html} directive with unescaped user-controlled input (item.name). This matches the described attack vector where HTML tags in item names get rendered as DOM elements. Both the default implementation and documented custom renderer examples follow this vulnerable pattern, as confirmed by the PoC and advisory details. The fix requires replacing raw HTML injection with text node creation or proper escaping.