{"answers":{"affected":"4 open source packages ship an affected version, including vite-plugin-static-copy.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57753 exists.","fix":"Upgrade vite-plugin-static-copy to a fixed version for your release line: 2.3.2 or 3.1.2.","what":"CVE-2025-57753 is a medium-severity path traversal vulnerability in sapphi-red vite-plugin-static-copy, published on 21 Aug 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-57753 and fix it if it is affected.\n\nWhat it is: CVE-2025-57753 is a medium-severity path traversal vulnerability in sapphi-red vite-plugin-static-copy, published on 21 Aug 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-57753 exists.\n\nAffected packages and fixed versions:\n- vite-plugin-static-copy (npm): affected from 0.4.3; fixed in 2.3.2\n- vite-plugin-static-copy (npm): affected from 0.4.3; fixed in 2.3.2\n- vite-plugin-static-copy (npm): affected from 3.0.0; fixed in 3.1.2\n- vite-plugin-static-copy (npm): affected from 3.0.0; fixed in 3.1.2\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-57753/ (Markdown: https://insights.sbomify.com/CVE-2025-57753/index.md)","id":"CVE-2025-57753","markdown":"https://insights.sbomify.com/CVE-2025-57753/index.md","name":"CVE-2025-57753","record":{"aliases":["GHSA-pp7p-q8fx-2968"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Vite plugin","requires_auth":"none","summary":"Attackers can access files outside the intended source directory via crafted requests in vite-plugin-static-copy.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"vite-plugin-static-copy is rollup-plugin-copy for Vite with dev server support. Files not included in src are accessible with a crafted request. The vulnerability is fixed in 2.3.2 and 3.1.2.","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":"vite-plugin-static-copy files not included in `src` are accessible with a crafted request","id":"CVE-2025-57753","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":4,"n_references":1,"next":{"headline":"eslint-ban-moment exposed a sensitive Supabase URI in .env (Credential leak)","id":"CVE-2025-57754"},"packages":[{"ecosystem":"npm","fixed":["2.3.2"],"introduced":["0.4.3"],"last_affected":[],"package":"vite-plugin-static-copy","purl":null,"source":"GHSA-pp7p-q8fx-2968"},{"ecosystem":"npm","fixed":["2.3.2"],"introduced":["0.4.3"],"last_affected":[],"package":"vite-plugin-static-copy","purl":"pkg:npm/vite-plugin-static-copy","source":"GHSA-pp7p-q8fx-2968"},{"ecosystem":"npm","fixed":["3.1.2"],"introduced":["3.0.0"],"last_affected":[],"package":"vite-plugin-static-copy","purl":null,"source":"GHSA-pp7p-q8fx-2968"},{"ecosystem":"npm","fixed":["3.1.2"],"introduced":["3.0.0"],"last_affected":[],"package":"vite-plugin-static-copy","purl":"pkg:npm/vite-plugin-static-copy","source":"GHSA-pp7p-q8fx-2968"}],"prev":{"headline":"Next.js Affected by Cache Key Confusion for Image Optimization API Routes","id":"CVE-2025-57752"},"products":["vite-plugin-static-copy"],"published":"2025-08-21","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-08-21","vendors":["sapphi-red"]},"summary":"Attackers can access files outside the intended source directory via crafted requests in vite-plugin-static-copy.","url":"https://insights.sbomify.com/CVE-2025-57753/"}