CVE-2024-41677
published 2024-08-06CVE-2024-41677: Qwik is a performance focused javascript framework. A potential mutation XSS vulnerability exists in Qwik for versions up to but not including 1.6.0. Qwik…
PriorityP427medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
0.47%
37.1th percentile
Qwik is a performance focused javascript framework. A potential mutation XSS vulnerability exists in Qwik for versions up to but not including 1.6.0. Qwik improperly escapes HTML on server-side rendering. It converts strings according to the rules found in the `render-ssr.ts` file. It sometimes causes the situation that the final DOM tree rendered on browsers is different from what Qwik expects on server-side rendering. This may be leveraged to perform XSS attacks, and a type of the XSS is known as mXSS (mutation XSS). This has been resolved in qwik version 1.6.0 and @builder.io/qwik version 1.7.3. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| builder.io | qwik | >= 0 < 1.7.3 | 1.7.3 |
| qwik | qwik | < 1.7.3 | 1.7.3 |
| qwikdev | qwik | — | — |
| qwikdev | qwik | — | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Qwik has a potential mXSS vulnerability due to improper HTML escaping
ghsa·2024-08-06
CVE-2024-41677 [MEDIUM] CWE-79 Qwik has a potential mXSS vulnerability due to improper HTML escaping
Qwik has a potential mXSS vulnerability due to improper HTML escaping
### Summary
A potential mXSS vulnerability exists in Qwik for versions up to 1.6.0.
### Details
Qwik improperly escapes HTML on server-side rendering. It converts strings according to the following rules:
https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts#L1182-L1208
- If the string is an attribute value:
- `"` -> `"`
- `&` -> `&`
- Other characters -> No conversion
- Otherwise:
- ` ` ` -> `>`
- `&` -> `&`
- Other characters -> No conversion
It sometimes causes the situation that the final DOM tree rendered on browsers is different from what Qwik expects on server-side rendering. This may be leveraged to perform XSS attacks, and a type of the XSS is known as mXSS (mutation
OSV
Qwik has a potential mXSS vulnerability due to improper HTML escaping
osv·2024-08-06
CVE-2024-41677 [MEDIUM] Qwik has a potential mXSS vulnerability due to improper HTML escaping
Qwik has a potential mXSS vulnerability due to improper HTML escaping
### Summary
A potential mXSS vulnerability exists in Qwik for versions up to 1.6.0.
### Details
Qwik improperly escapes HTML on server-side rendering. It converts strings according to the following rules:
https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts#L1182-L1208
- If the string is an attribute value:
- `"` -> `"`
- `&` -> `&`
- Other characters -> No conversion
- Otherwise:
- ` ` ` -> `>`
- `&` -> `&`
- Other characters -> No conversion
It sometimes causes the situation that the final DOM tree rendered on browsers is different from what Qwik expects on server-side rendering. This may be leveraged to perform XSS attacks, and a type of the XSS is known as mXSS (mutation
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-08-06
Published