{"answers":{"affected":"2 open source packages ship an affected version, including @builder.io/qwik. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41677 exists.","fix":"Upgrade @builder.io/qwik to 1.7.3 or later.","what":"CVE-2024-41677 is a medium-severity cross-site scripting vulnerability in QwikDev qwik, published on 6 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-41677 and fix it if it is affected.\n\nWhat it is: CVE-2024-41677 is a medium-severity cross-site scripting vulnerability in QwikDev qwik, published on 6 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41677 exists.\n\nAffected packages and fixed versions:\n- @builder.io/qwik (npm): affected all versions; fixed in 1.7.3\n- @builder.io/qwik (npm): affected all versions; fixed in 1.7.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-41677/ (Markdown: https://insights.sbomify.com/CVE-2024-41677/index.md)","id":"CVE-2024-41677","markdown":"https://insights.sbomify.com/CVE-2024-41677/index.md","name":"CVE-2024-41677","record":{"aliases":["GHSA-2rwj-7xq8-4gx4"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript framework","requires_auth":"none","summary":"Attackers can execute arbitrary scripts via mutation XSS due to improper HTML escaping during server-side rendering in the Qwik framework.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"qwik","vendor":"qwik"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site Scripting (XSS) vulnerability due to improper HTML escaping in qwik","id":"CVE-2024-41677","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"GLPI has multiple reflected XSS","id":"CVE-2024-41678"},"packages":[{"ecosystem":"npm","fixed":["1.7.3"],"introduced":["0"],"last_affected":[],"package":"@builder.io/qwik","purl":null,"source":"GHSA-2rwj-7xq8-4gx4"},{"ecosystem":"npm","fixed":["1.7.3"],"introduced":["0"],"last_affected":[],"package":"@builder.io/qwik","purl":"pkg:npm/%40builder.io/qwik","source":"GHSA-2rwj-7xq8-4gx4"}],"prev":{"headline":"Magento LTS vulnerable to stored Cross-site Scripting (XSS) in admin system configs","id":"CVE-2024-41676"},"products":["qwik"],"published":"2024-08-06","related":[{"cvss_score":10,"headline":"Code Injection in builderio/qwik","id":"CVE-2023-1283","kev_date_added":null,"published":"2023-03-08"},{"cvss_score":9.3,"headline":"Prototype Pollution via FormData Processing in Qwik City","id":"CVE-2026-25150","kev_date_added":null,"published":"2026-02-03"},{"cvss_score":9.2,"headline":"Qwik affected by unauthenticated RCE via server$ Deserialization","id":"CVE-2026-27971","kev_date_added":null,"published":"2026-03-03"},{"cvss_score":7.5,"headline":"Qwik has array method pollution in FormData processing, allowing type confusion and DoS","id":"CVE-2026-32701","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":6.1,"headline":"Cross-site Scripting (XSS) - Generic in builderio/qwik","id":"CVE-2023-0410","kev_date_added":null,"published":"2023-01-20"},{"cvss_score":5.9,"headline":"Qwik City has a CSRF Protection Bypass via Content-Type Header Validation","id":"CVE-2026-25151","kev_date_added":null,"published":"2026-02-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-08","vendors":["QwikDev"]},"summary":"Attackers can execute arbitrary scripts via mutation XSS due to improper HTML escaping during server-side rendering in the Qwik framework.","url":"https://insights.sbomify.com/CVE-2024-41677/"}