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
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