{"id":"CVE-2024-41677","state":"PUBLISHED","title":"Cross-site Scripting (XSS) vulnerability due to improper HTML escaping in qwik","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.","publishedAt":"2024-08-06T17:52:14.648Z","updatedAt":"2024-08-08T19:04:29.078Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["QwikDev qwik"],"affected":[{"vendor":"QwikDev","product":"qwik","versions":[{"version":"@builder.io/qwik: < 1.7.3","status":"affected"},{"version":"qwik: < 1.6.0","status":"affected"}]}],"references":["https://github.com/QwikDev/qwik/security/advisories/GHSA-2rwj-7xq8-4gx4","https://github.com/QwikDev/qwik/commit/7e742eb3a1001542d795776c0317d47df8b9d64e","https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts#L1182-L1208"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41677.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-41677","state":"PUBLISHED","datePublished":"2024-08-06T17:52:14.648Z","dateUpdated":"2024-08-08T19:04:29.078Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-18T15:21:47.486Z"},"containers":{"cna":{"title":"Cross-site Scripting (XSS) vulnerability due to improper HTML escaping in qwik","descriptions":[{"lang":"en","value":"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":[{"vendor":"QwikDev","product":"qwik","versions":[{"version":"@builder.io/qwik: < 1.7.3","status":"affected"},{"version":"qwik: < 1.6.0","status":"affected"}]}],"references":[{"url":"https://github.com/QwikDev/qwik/security/advisories/GHSA-2rwj-7xq8-4gx4","name":"https://github.com/QwikDev/qwik/security/advisories/GHSA-2rwj-7xq8-4gx4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/QwikDev/qwik/commit/7e742eb3a1001542d795776c0317d47df8b9d64e","name":"https://github.com/QwikDev/qwik/commit/7e742eb3a1001542d795776c0317d47df8b9d64e","tags":["x_refsource_MISC"]},{"url":"https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts#L1182-L1208","name":"https://github.com/QwikDev/qwik/blob/v1.5.5/packages/qwik/src/core/render/ssr/render-ssr.ts#L1182-L1208","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-08-06T17:52:14.648Z"},"source":{"advisory":"GHSA-2rwj-7xq8-4gx4","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"qwikdev","product":"qwik","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.6.0","versionType":"custom"}],"cpes":["cpe:2.3:a:qwikdev:qwik:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-08T19:02:06.566486Z","id":"CVE-2024-41677","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-08T19:04:29.078Z"}}]}}}