CVE-2024-41677: Qwik has a potential mXSS vulnerability due to improper HTML escaping
6.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43649%
CWE
Published
8/6/2024
Updated
8/7/2024
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:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| @builder.io/qwik | npm | < 1.7.3 | 1.7.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper HTML escaping in server-side rendering. The original escapeAttr function (replaced in the fix) only handled " and &, but failed to escape < and > in attribute values. This allowed payloads like </noscript> in attributes to break out of context and execute scripts. The commit diff shows escapeAttr was replaced with a consolidated escapeHtml function that properly handles additional characters, confirming escapeAttr was the root cause.