CVE-2023-0410: @builder.io/qwik vulnerable to Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36739%
CWE
Published
1/20/2023
Updated
1/26/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 |
---|---|---|---|
@builder.io/qwik | npm | < 0.16.2 | 0.16.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key issues in SSR rendering: 1) Class
attribute values were inserted without proper escaping (fixed by adding escapeAttr()
), and 2) Attribute names weren't validated against unsafe characters (fixed by adding isSSRUnsafeAttr()
). The renderNode
function contained both vulnerable code paths - direct classStr
insertion and lack of attribute name validation. The escapeAttr
function's missing application to class attributes left a security gap, even though the function itself was properly implemented.