{"answers":{"affected":"2 open source packages ship an affected version, including nuxt. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34344 exists.","fix":"Upgrade nuxt to 3.12.4 or later.","what":"CVE-2024-34344 is a high-severity code injection vulnerability in nuxt, published on 5 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-34344 and fix it if it is affected.\n\nWhat it is: CVE-2024-34344 is a high-severity code injection vulnerability in nuxt, published on 5 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-34344 exists.\n\nAffected packages and fixed versions:\n- nuxt (npm): affected from 3.4.0; fixed in 3.12.4\n- nuxt (npm): affected from 3.4.0; fixed in 3.12.4\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-34344/ (Markdown: https://insights.sbomify.com/CVE-2024-34344/index.md)","id":"CVE-2024-34344","markdown":"https://insights.sbomify.com/CVE-2024-34344/index.md","name":"CVE-2024-34344","record":{"aliases":["GHSA-v784-fjjh-f8r4"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Nuxt web framework","requires_auth":"none","summary":"Attackers can execute arbitrary code on the server if a developer visits a malicious page while running local tests.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nuxt","vendor":"nuxt"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. Due to the insufficient validation of the `path` parameter in the NuxtTestComponentWrapper, an attacker can execute arbitrary JavaScript on the server side, which allows them to execute arbitrary commands. Users who open a malicious web page in the browser while running the test locally are affected by this vulnerability, which results in the remote code execution from the malicious web page. Since web pages can send requests to arbitrary addresses, a malicious web page can repeatedly try to exploit this vulnerability, which then triggers the exploit when the test server starts.","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":"Remote code execution via the browser when running the test locally in nuxt","id":"CVE-2024-34344","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"@cyclonedx/cyclonedx-library Improper Restriction of XML External Entity Reference vulnerability","id":"CVE-2024-34345"},"packages":[{"ecosystem":"npm","fixed":["3.12.4"],"introduced":["3.4.0"],"last_affected":[],"package":"nuxt","purl":null,"source":"GHSA-v784-fjjh-f8r4"},{"ecosystem":"npm","fixed":["3.12.4"],"introduced":["3.4.0"],"last_affected":[],"package":"nuxt","purl":"pkg:npm/nuxt","source":"GHSA-v784-fjjh-f8r4"}],"prev":{"headline":"Cross-site Scripting (XSS) in navigateTo if used after SSR in nuxt","id":"CVE-2024-34343"},"products":["nuxt"],"published":"2024-08-05","related":[{"cvss_score":8.8,"headline":"Nuxt: Route-rule middleware bypass via case-sensitivity mismatch between vue-router and the routeRules matcher","id":"CVE-2026-53721","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":8.8,"headline":"Path Traversal: '../filedir' in Nuxt Devtools","id":"CVE-2024-23657","kev_date_added":null,"published":"2024-08-05"},{"cvss_score":8.6,"headline":"Server-Side Request Forgery (SSRF) in nuxt-icon","id":"CVE-2024-42352","kev_date_added":null,"published":"2024-08-05"},{"cvss_score":8.1,"headline":"Code Injection in nuxt/nuxt","id":"CVE-2023-3224","kev_date_added":null,"published":"2023-06-13"},{"cvss_score":7.5,"headline":"Nuxt allows DOS via cache poisoning with payload rendering response","id":"CVE-2025-27415","kev_date_added":null,"published":"2025-03-19"},{"cvss_score":6.8,"headline":"Nuxt - Arbitrary File Read via World-Connectable vite-node IPC Socket on Linux","id":"CVE-2026-56301","kev_date_added":null,"published":"2026-06-23"}],"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":"total"},"state":"PUBLISHED","updated":"2024-08-12","vendors":["nuxt"]},"summary":"Attackers can execute arbitrary code on the server if a developer visits a malicious page while running local tests.","url":"https://insights.sbomify.com/CVE-2024-34344/"}