# CVE-2024-41677: Cross-site Scripting (XSS) vulnerability due to improper HTML escaping in qwik

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-06T17:52:14.648Z
- Modified: 2026-06-17T07:48:01.890Z
- Also known as: GHSA-2rwj-7xq8-4gx4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- QwikDev qwik: @builder.io/qwik: < 1.7.3; qwik: < 1.6.0; before 1.6.0
- @builder.io/qwik (npm): before 1.7.3
- qwik qwik: before 1.7.3

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/QwikDev/qwik/security/advisories/GHSA-2rwj-7xq8-4gx4> (exploit, vendor-advisory, web)
- <https://github.com/QwikDev/qwik/commit/7e742eb3a1001542d795776c0317d47df8b9d64e> (patch, web)
- <https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts#L1182-L1208> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41677> (advisory)
- <https://github.com/QwikDev/qwik> (package)

## Sources

- CVE List: [CVE-2024-41677](https://www.cve.org/CVERecord?id=CVE-2024-41677), CVE Terms of Use, modified 2024-08-08
- GitHub Advisory Database: [GHSA-2rwj-7xq8-4gx4](https://github.com/advisories/GHSA-2rwj-7xq8-4gx4), CC-BY-4.0, modified 2024-08-06
- NVD: [CVE-2024-41677](https://nvd.nist.gov/vuln/detail/CVE-2024-41677), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41677 · Whole record: https://cve.day/CVE-2024-41677.json · Rebuilt by cve.day 2026-11-25T22:58:44.062Z
