NEWS

Hackers Target Exposed Vite Dev Servers to Steal AWS, Azure Secrets

A mass-scanning campaign is exploiting CVE-2026-39364 in exposed Vite dev servers to harvest AWS and Azure credentials, .env files, and Terraform...

Dylan H.

News Desk

September 14, 2026
3 min read
Hackers Target Exposed Vite Dev Servers to Steal AWS, Azure Secrets

Mass Scanning for Exposed Dev Servers

A widespread scanning campaign is targeting internet-exposed Vite development servers in an attempt to steal cloud credentials from AWS and Azure environments. The campaign exploits CVE-2026-39364, a high-severity vulnerability affecting Vite versions 7.1.0–7.3.2 and 8.x before 8.0.5.


How the Exploit Works

Attackers append parameters such as ?raw or ?import&raw to HTTP requests sent to a vulnerable Vite dev server. The server fails to enforce its deny-list filtering for these request patterns and serves the requested file's contents in plaintext with an HTTP 200 response — bypassing the protections meant to keep local files off-limits to unauthenticated network requests.


What Attackers Are After

TargetPurpose
.env files and variantsApplication secrets, API keys, database credentials
AWS credential/config filesCloud account takeover
Azure tokens and credentialsCloud account takeover
Terraform state filesInfrastructure secrets and topology
/proc/self/environFull process environment variables

Scale of the Campaign

Security firm F5 detected over 800 attacks generating approximately 32,000 events in a single month through its monitoring telemetry. Most of the malicious activity originated from IP ranges in the United States, Belgium, and the Netherlands, with attackers routing traffic through Google Cloud IP space to obscure their origin.


Why This Matters

Vite's dev server is meant to run only in local development, but it's routinely left exposed — bound to 0.0.0.0 and reachable from the internet — in cloud sandboxes, CI runners, and misconfigured containers. A single exposed instance can hand an attacker the same AWS or Azure credentials a developer uses locally, often with far broader permissions than a production service account.


Recommendations

  1. Update Vite immediately to a patched release (8.0.5+, or the latest 7.x patch that addresses CVE-2026-39364)
  2. Never expose the dev server (default port 5173) to the public internet — bind to localhost or restrict via firewall/VPN
  3. Filter or alert on /@fs/, ?raw, and ?import&raw requests at the edge if a dev instance must be reachable
  4. Rotate all credentials that may have been present in .env files or process environment on any exposed instance
  5. Treat CI/sandbox environments as production for credential-scoping purposes — least-privilege IAM limits blast radius

References