# CVE-2024-41677: Qwik mutation XSS due to improper HTML escaping in SSR

Source: https://junglewise.ai/threats/cve-2024-41677-qwik-mutation-xss-due-to-improper-html-escaping-in-ssr  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-06. Updated: 2026-05-14  
License: CC BY 4.0 with a link back

CVE-2024-41677 · Severity: low · CVSS 3.1 · Published 2024-08-06

Qwik, a web framework used for building high-performance applications, is vulnerable to a type of security flaw called mutation Cross-Site Scripting (mXSS). This occurs because the framework does not properly clean up user-provided data when generating web pages on the server. An attacker could use this to run malicious scripts in a user's browser, potentially leading to unauthorized actions or the theft of sensitive session information.

Technologies: [@builder.io/qwik (npm)](https://junglewise.ai/threats/technologies/builder-io-qwik). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2024-41677 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-41677 being exploited in the wild.

**How severe is CVE-2024-41677?** Low severity, with a CVSS score of 3.1, published 6 August 2024.

**Which products and versions are affected?** @builder.io/qwik (npm) SEMVER:introduced=0,fixed=1.7.3; QwikDev Qwik < 1.6.0.

**Is there a fix for CVE-2024-41677?** Yes. @builder.io/qwik (npm): upgrade to 1.7.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-41677 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-41677?** Check whether you run @builder.io/qwik (npm) or QwikDev Qwik at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @builder.io/qwik (npm): upgrade to 1.7.3 or later

  ```sh
  npm install @builder.io/qwik@1.7.3
  ```


## Technical details

A mutation Cross-Site Scripting (mXSS) vulnerability exists in Qwik's server-side rendering (SSR) engine. The root cause is improper HTML escaping in `render-ssr.ts`, where certain characters (like quotes and ampersands) are escaped for attributes, but other critical characters like less-than (<) and greater-than (>) signs are not consistently handled in all contexts. This discrepancy allows an attacker to provide input that, when processed by the browser's DOM parser (specifically within elements like <noscript>), 'mutates' into executable script tags. The attack is delivered via a network request (e.g., a malicious URL parameter) and requires a user to visit the crafted link. The vulnerability is fixed in Qwik version 1.6.0 and @builder.io/qwik version 1.7.3.

## Affected products

- QwikDev qwik < 1.6.0
- QwikDev @builder.io/qwik < 1.7.3

## Identifiers

- CVE-2024-41677
- GHSA-2rwj-7xq8-4gx4

## Timeline

- 2024-08-06: advisory
- 2024-08-06: disclosed
- 2024-06-25: patched

## References

- [https://github.com/QwikDev/qwik/security/advisories/GHSA-2rwj-7xq8-4gx4](https://github.com/QwikDev/qwik/security/advisories/GHSA-2rwj-7xq8-4gx4)
- [https://github.com/QwikDev/qwik/commit/7e742eb3a1001542d795776c0317d47df8b9d64e](https://github.com/QwikDev/qwik/commit/7e742eb3a1001542d795776c0317d47df8b9d64e)
- [https://github.com/QwikDev/qwik](https://github.com/QwikDev/qwik)
- [https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts](https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts)

## Related threats

- [Qwik server denial of service via malformed Resource thenable](https://junglewise.ai/threats/cve-2026-84994-qwik-crashing-any-qwik-server-via-resource-thenable)
- [Qwik remote code execution via server$ deserialization](https://junglewise.ai/threats/cve-2026-27971-qwik-remote-code-execution-via-server-deserialization)
- [BuilderIO Qwik code injection in PureFunctionSerializer](https://junglewise.ai/threats/cve-2023-1283-builderio-qwik-code-injection-in-purefunctionserializer)
- [Builder.io Qwik cross-site scripting in attribute handling](https://junglewise.ai/threats/cve-2023-0410-builder-io-qwik-cross-site-scripting-in-attribute-handling)
