As reported by The Hacker News, F5 Labs has uncovered an active mass-scanning campaign exploiting CVE-2026-39364 (CVSS 8.2, High) in Vite development servers exposed to the public internet. This is not a theoretical risk — attackers are systematically probing for exposed instances and extracting cloud credentials, infrastructure state files, and environment secrets in bulk.
Vulnerability Snapshot
- CVE ID:
- CVE-2026-39364
- Severity:
- High (CVSS 8.2)
- Affected Product:
- Vite development server (versions prior to patched release in April 2026)
- Root Cause:
- Query parameter manipulation bypasses server.fs.deny access controls via /@fs/ endpoint
- Patch Status:
- Patch available — Vite advisory issued April 2026
- Active Exploitation:
- Yes — mass scanning observed August 2026, targeting AWS/Azure credentials and terraform state files
Why This Matters
This vulnerability represents a dangerous intersection of two systemic problems: insecure default configurations in modern JavaScript tooling and the chronic habit of exposing development servers to the public internet. Vite's default localhost binding is safe — but the moment a developer passes --host, misconfigures Docker port mappings, or sets server.host improperly, the server.fs.deny protection becomes the only barrier between attackers and plaintext secrets.
The bypass itself is trivially exploitable. Appending query parameters like ?raw or ?import&raw to /@fs/ requests causes Vite to return the file contents before the deny-list check executes. This is the kind of logic flaw that automated scanners love — no authentication, no complex payload, just a simple HTTP GET.
The attackers are not just grabbing .env files. They're targeting /proc/self/cwd/.env, terraform.tfstate, serverless.yml, and Azure profiles — demonstrating a clear understanding of cloud-native deployment stacks and where the highest-value secrets live.
Who Is at Risk
--host flags or Docker port mappingsShield53 Recommendations
Immediate Actions
- Patch Vite immediately to the latest version that includes the CVE-2026-39364 fix
- Audit exposure: Search your environment for Vite processes launched with
--hostorserver.hostconfigurations. Check Docker Compose files for exposed port mappings (ports 5173, 4173, or custom) - Block public access: Ensure Vite dev servers bind to localhost only. If network access is required, use VPN or SSH tunneling rather than direct exposure
- Rotate all credentials that may have been accessible through exposed Vite instances — assume AWS access keys, Azure credentials, database passwords, and API tokens are compromised
- Review cloud audit logs for unauthorized API calls using potentially stolen credentials (AWS CloudTrail, Azure Activity Log)
- Implement network-level controls: Use security groups and firewall rules to restrict dev server access to trusted IP ranges only
Strategic Hardening
Development servers should never be internet-facing. This incident underscores a broader pattern: modern dev tooling (Vite, Webpack DevServer, Storybook) assumes local trust but gets deployed in ways that violate that assumption. Organizations should implement developer guardrails that prevent --host usage outside isolated environments, and shift to remote development environments (GitHub Codespaces, Gitpod) or bastion-host patterns for shared dev access.
Additionally, treat terraform state files as secrets. They contain resource IDs, connection strings, and sometimes plaintext credentials. Apply least-privilege IAM to dev AWS accounts and use short-lived credentials via instance profiles or OIDC federation rather than long-lived access keys in .env files.