CVE-2025-57753: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sapphi-red vite-plugin-static-copy
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.
AI Analysis
Technical Summary
CVE-2025-57753 is a path traversal vulnerability (CWE-22) found in the vite-plugin-static-copy, a plugin used with the Vite build tool to copy static files with support for the development server. This plugin is a successor or variant of rollup-plugin-copy, tailored for Vite environments. The vulnerability affects versions >= 0.4.3 and < 2.3.2, as well as >= 3.0.0 and < 3.1.2. The core issue is that files outside the intended source directory (src) can be accessed by an attacker through a specially crafted request that exploits improper limitation of pathnames to restricted directories. Essentially, the plugin fails to adequately sanitize or restrict file paths, allowing traversal outside the designated directory boundaries. This can lead to unauthorized access to files that should not be publicly accessible during development or build processes. The vulnerability has a CVSS 4.0 base score of 6.0, indicating a medium severity level. The vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), but user interaction is required (UI:P). The vulnerability impacts confidentiality (VC:H) but not integrity or availability. No known exploits are currently reported in the wild, and patches fixing the issue are available in versions 2.3.2 and 3.1.2. This vulnerability is particularly relevant to developers and organizations using Vite with this plugin in their build or development environments, as it can expose sensitive files unintentionally during development or testing phases, potentially leaking source code, configuration files, or other sensitive assets.
Potential Impact
For European organizations, the impact of CVE-2025-57753 can be significant, especially for those heavily reliant on modern frontend development frameworks like Vite. Exposure of sensitive files due to path traversal can lead to leakage of intellectual property, source code, environment configurations, or credentials embedded in configuration files. This can facilitate further attacks such as code injection, privilege escalation, or supply chain compromise. Organizations in sectors with strict data protection regulations (e.g., GDPR) may face compliance risks if sensitive personal data or credentials are exposed. The vulnerability primarily affects development and build environments, which might be less hardened than production, increasing the risk of exploitation during development cycles. Additionally, since the vulnerability requires user interaction (e.g., crafted requests), it may be exploited through social engineering or targeted attacks on developers or CI/CD pipelines. The medium severity score reflects a moderate risk, but the potential for cascading effects in software supply chains or development environments is notable.
Mitigation Recommendations
1. Upgrade vite-plugin-static-copy to versions 2.3.2 or 3.1.2 or later, where the vulnerability is fixed. 2. Review and restrict access to development and build servers, ensuring they are not exposed to untrusted networks or users. 3. Implement strict input validation and sanitization for any requests or inputs that interact with file paths in development tools. 4. Use containerization or isolated environments for development to limit the impact of potential file access vulnerabilities. 5. Audit build and deployment pipelines to ensure no sensitive files are inadvertently exposed or included in publicly accessible directories. 6. Educate developers about the risks of path traversal and the importance of using updated dependencies. 7. Monitor network traffic and logs for unusual or crafted requests targeting development servers or build tools. 8. Consider implementing web application firewalls (WAF) or runtime application self-protection (RASP) solutions that can detect and block path traversal attempts.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland, Ireland, Belgium
CVE-2025-57753: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sapphi-red vite-plugin-static-copy
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.
AI-Powered Analysis
Technical Analysis
CVE-2025-57753 is a path traversal vulnerability (CWE-22) found in the vite-plugin-static-copy, a plugin used with the Vite build tool to copy static files with support for the development server. This plugin is a successor or variant of rollup-plugin-copy, tailored for Vite environments. The vulnerability affects versions >= 0.4.3 and < 2.3.2, as well as >= 3.0.0 and < 3.1.2. The core issue is that files outside the intended source directory (src) can be accessed by an attacker through a specially crafted request that exploits improper limitation of pathnames to restricted directories. Essentially, the plugin fails to adequately sanitize or restrict file paths, allowing traversal outside the designated directory boundaries. This can lead to unauthorized access to files that should not be publicly accessible during development or build processes. The vulnerability has a CVSS 4.0 base score of 6.0, indicating a medium severity level. The vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), but user interaction is required (UI:P). The vulnerability impacts confidentiality (VC:H) but not integrity or availability. No known exploits are currently reported in the wild, and patches fixing the issue are available in versions 2.3.2 and 3.1.2. This vulnerability is particularly relevant to developers and organizations using Vite with this plugin in their build or development environments, as it can expose sensitive files unintentionally during development or testing phases, potentially leaking source code, configuration files, or other sensitive assets.
Potential Impact
For European organizations, the impact of CVE-2025-57753 can be significant, especially for those heavily reliant on modern frontend development frameworks like Vite. Exposure of sensitive files due to path traversal can lead to leakage of intellectual property, source code, environment configurations, or credentials embedded in configuration files. This can facilitate further attacks such as code injection, privilege escalation, or supply chain compromise. Organizations in sectors with strict data protection regulations (e.g., GDPR) may face compliance risks if sensitive personal data or credentials are exposed. The vulnerability primarily affects development and build environments, which might be less hardened than production, increasing the risk of exploitation during development cycles. Additionally, since the vulnerability requires user interaction (e.g., crafted requests), it may be exploited through social engineering or targeted attacks on developers or CI/CD pipelines. The medium severity score reflects a moderate risk, but the potential for cascading effects in software supply chains or development environments is notable.
Mitigation Recommendations
1. Upgrade vite-plugin-static-copy to versions 2.3.2 or 3.1.2 or later, where the vulnerability is fixed. 2. Review and restrict access to development and build servers, ensuring they are not exposed to untrusted networks or users. 3. Implement strict input validation and sanitization for any requests or inputs that interact with file paths in development tools. 4. Use containerization or isolated environments for development to limit the impact of potential file access vulnerabilities. 5. Audit build and deployment pipelines to ensure no sensitive files are inadvertently exposed or included in publicly accessible directories. 6. Educate developers about the risks of path traversal and the importance of using updated dependencies. 7. Monitor network traffic and logs for unusual or crafted requests targeting development servers or build tools. 8. Consider implementing web application firewalls (WAF) or runtime application self-protection (RASP) solutions that can detect and block path traversal attempts.
Affected Countries
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-08-19T15:16:22.916Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 68a746acad5a09ad00127771
Added to database: 8/21/2025, 4:17:48 PM
Last enriched: 8/21/2025, 4:33:37 PM
Last updated: 1/7/2026, 4:23:52 AM
Views: 122
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-20893: Origin validation error in Fujitsu Client Computing Limited Fujitsu Security Solution AuthConductor Client Basic V2
HighCVE-2025-14891: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ivole Customer Reviews for WooCommerce
MediumCVE-2025-14059: CWE-73 External Control of File Name or Path in roxnor EmailKit – Email Customizer for WooCommerce & WP
MediumCVE-2025-12648: CWE-552 Files or Directories Accessible to External Parties in cbutlerjr WP-Members Membership Plugin
MediumCVE-2025-14631: CWE-476 NULL Pointer Dereference in TP-Link Systems Inc. Archer BE400
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.