{"answers":{"affected":"4 open source packages ship an affected version, including @nuxt/rspack-builder and @nuxt/webpack-builder.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24361 exists.","fix":"Upgrade @nuxt/rspack-builder to 3.15.3 or later.","what":"CVE-2025-24361 is a medium-severity vulnerability in nuxt, published on 25 Jan 2025. 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-2025-24361 and fix it if it is affected.\n\nWhat it is: CVE-2025-24361 is a medium-severity vulnerability in nuxt, published on 25 Jan 2025. 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-2025-24361 exists.\n\nAffected packages and fixed versions:\n- @nuxt/rspack-builder (npm): affected from 3.12.2; fixed in 3.15.3\n- @nuxt/rspack-builder (npm): affected from 3.12.2; fixed in 3.15.3\n- @nuxt/webpack-builder (npm): affected from 3.0.0; fixed in 3.15.3\n- @nuxt/webpack-builder (npm): affected from 3.0.0; fixed in 3.15.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-2025-24361/ (Markdown: https://insights.sbomify.com/CVE-2025-24361/index.md)","id":"CVE-2025-24361","markdown":"https://insights.sbomify.com/CVE-2025-24361/index.md","name":"CVE-2025-24361","record":{"aliases":["CLSA-2026-1776040398","CLSA-2026-1792161443","CLSA-2026-1792161449","CLSA-2026-1792161583","CLSA-2026-1792161589","CLSA-2026-1792161807","CLSA-2026-1792161811","CLSA-2026-1792161920","CLSA-2026-1792161925","GHSA-4gf7-ff8x-hq99"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Nuxt web framework","requires_auth":"none","summary":"An attacker can steal source code from a running Nuxt dev server by tricking a developer into visiting a malicious website.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-749","name":"Exposed Dangerous Method or Function"}],"description":"Nuxt is an open-source web development framework for Vue.js. Source code may be stolen during dev when using version 3.0.0 through 3.15.12 of the webpack builder or version 3.12.2 through 3.152 of the rspack builder and a victim opens a malicious web site. Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject a malicious script in their site and run the script. By using `Function::toString` against the values in `window.webpackChunknuxt_app`, the attacker can get the source code. Version 3.15.13 of Nuxt patches this issue.","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":"Opening a malicious website while running a Nuxt dev server could allow read-only access to code","id":"CVE-2025-24361","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":4,"n_references":2,"next":{"headline":"CodeQL GitHub Action failed workflow writes GitHub PAT to debug artifacts","id":"CVE-2025-24362"},"packages":[{"ecosystem":"npm","fixed":["3.15.3"],"introduced":["3.12.2"],"last_affected":[],"package":"@nuxt/rspack-builder","purl":null,"source":"GHSA-4gf7-ff8x-hq99"},{"ecosystem":"npm","fixed":["3.15.3"],"introduced":["3.12.2"],"last_affected":[],"package":"@nuxt/rspack-builder","purl":"pkg:npm/%40nuxt/rspack-builder","source":"GHSA-4gf7-ff8x-hq99"},{"ecosystem":"npm","fixed":["3.15.3"],"introduced":["3.0.0"],"last_affected":[],"package":"@nuxt/webpack-builder","purl":null,"source":"GHSA-4gf7-ff8x-hq99"},{"ecosystem":"npm","fixed":["3.15.3"],"introduced":["3.0.0"],"last_affected":[],"package":"@nuxt/webpack-builder","purl":"pkg:npm/%40nuxt/webpack-builder","source":"GHSA-4gf7-ff8x-hq99"}],"prev":{"headline":"Opening a malicious website while running a Nuxt dev server could allow read-only access to code","id":"CVE-2025-24360"},"products":["nuxt"],"published":"2025-01-25","related":[],"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":"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":"2025-02-12","vendors":["nuxt"]},"summary":"An attacker can steal source code from a running Nuxt dev server by tricking a developer into visiting a malicious website.","url":"https://insights.sbomify.com/CVE-2025-24361/"}