Softiconex Digital Solutions
← Back to Blog

Vite Vulnerability: Security Risks, Affected Versions, and Fixes

By info@softiconex.comNovember 27, 2026

Discover the major Vite vulnerabilities reported in 2026, including critical remote code execution and file-access issues. Check affected versions, security fixes, and practical steps to protect your development environment.

Vite Vulnerability

A Vite vulnerability can expose sensitive files or, in serious cases, allow attackers to execute code on a developer’s machine. Most of the major Vite security issues disclosed in 2026 affect the development server rather than the production application. However, the risk becomes significant when developers expose that server to a network using --host or the server.host configuration option.

This guide explains the major Vite security vulnerabilities reported in 2026, including the critical remote code execution (RCE) vulnerability published on November 10 and a separate beta-only security issue disclosed on November 26. You’ll learn which versions are affected, where fixes are available, how to check your project, and how to reduce the risk of exposing your development environment.

Quick recommendation: Check your installed Vite version and update to the latest patched release in your supported version line. Avoid exposing the development server to untrusted networks. If a vulnerable server was publicly accessible, investigate potential exposure and rotate credentials that may have been accessible.

What Is Vite?

Vite is a frontend build tool and development server used in modern JavaScript and TypeScript projects. It provides fast development startup, hot module replacement (HMR), and a production build process.

During development, Vite serves source files through an HTTP development server. For production, it builds application assets that can be deployed to a web server or static hosting platform.

Vite 8 uses Rolldown as its bundling core. This is relevant to some of the newer security fixes because the patched Vite releases include corresponding updates to the Rolldown components they use.

By default, the Vite development server listens on localhost. This limits access to the local machine. Several serious vulnerabilities discussed in this article require the developer to expose the server to a network.

What Is a Vite Vulnerability?

A Vite vulnerability is a security weakness in the Vite project that could affect the confidentiality, integrity, or availability of a development environment or application.

Vite maintainers publish security issues through GitHub Security Advisories. Each advisory receives a GHSA identifier, and some also receive a CVE identifier.

Examples of security problems covered by Vite advisories include:

  • Crafted URLs that bypass file-access restrictions.

  • Unauthorized access to files outside the permitted project directories.

  • Remote code execution through the development server.

  • Missing security checks that allow unexpected cross-origin interactions.

  • Vulnerabilities in code Vite injects into certain production bundles.

Not every advisory receives a CVE number. For example, the critical November 2026 remote code execution issue is identified by GHSA-p4f5-76q4-ffq7.

It is also important to distinguish a Vite vulnerability from an application-level security problem. A leaked VITE_ environment variable, a malicious third-party plugin, or a vulnerability in your own application code does not automatically mean Vite itself is vulnerable.

Major Vite Security Vulnerabilities in 2026

The following table summarizes the major 2026 Vite security advisories, including the beta-only issue published on November 26. Severity and affected-version details should always be checked against the individual advisory.

Advisory

Published

Severity

Security issue

GHSA-qppr-rxr4-jjq2

Nov 26, 2026

Moderate

Beta-only file-access bypass involving ?worker

GHSA-p4f5-76q4-ffq7

Nov 10, 2026

Critical

Remote code execution through the __vite-browser-external virtual module

GHSA-8g5g-mxqh-grgj

Oct 21, 2026

Moderate

server.fs.deny bypass involving queries in the Vite 6 line

GHSA-rq7h-c2jc-7f22

Oct 6, 2026

Moderate

Files outside server.fs.allow could be served under certain non-Windows path conditions

GHSA-vfpm-58rq-9qcg

Oct 6, 2026

Moderate

Exposure of the first four bytes of files through ?vite-wasm-instance

GHSA-9jrq-w75r-8gcw

Oct 6, 2026

Low

Cross-origin script execution through custom middleware

GHSA-fx2h-pf6j-xcff

Jun 1, 2026

Moderate

server.fs.deny bypass using Windows alternate paths

GHSA-4w7w-66w2-5vf9

Apr 6, 2026

Moderate

Path traversal in optimized dependency .map handling (CVE-2026-39365)

GHSA-v2wj-q39q-566r

Apr 6, 2026

Moderate

server.fs.deny bypass through query parameters (CVE-2026-39364)

GHSA-p9ff-h696-f583

Apr 6, 2026

High

Arbitrary file read through the Vite development server WebSocket (CVE-2026-39363)

November 26 advisory: GHSA-qppr-rxr4-jjq2 (beta only)

The newest advisory in this article's verification window affects Vite 8.4.0-beta.1 only. It should not be confused with the vulnerabilities affecting stable Vite releases.

The issue can allow files outside server.fs.allow to be served if they are not covered by server.fs.deny. The problem involves two requests using a worker-related query.

Affected version: Vite 8.4.0-beta.1
Fixed version: Vite 8.4.0-beta.2
Severity: Moderate
CVE: No CVE was listed in the advisory at the time of verification.

The affected condition requires a project to use Vite 8.4.0-beta.1 and expose its development server to the network using --host or server.host. Sensitive files must also be outside the allowed directories and not covered by the deny rules.

The advisory describes a request using ?worker&import that can register a file path before a subsequent request retrieves the file. Related worker and resource query paths are also discussed in the advisory.

What should developers do?

  • If you use Vite 8.4.0-beta.1, upgrade to 8.4.0-beta.2 or a later release containing the fix.

  • If you use a stable Vite release, this specific beta-only advisory does not list your version as affected.

  • Keep the development server restricted to localhost or a trusted network.

  • Review the official advisory for its exact technical conditions.

Official reference: GHSA-qppr-rxr4-jjq2.

November 10 advisory: GHSA-p4f5-76q4-ffq7 (critical RCE)

The most serious Vite security issue highlighted in 2026 is the critical remote code execution vulnerability published on November 10.

The vulnerability involves Vite's vite-browser-external and vite-optional-peer-dep virtual modules. A request-controlled module identifier was embedded in generated module code without proper escaping. This could allow an attacker to inject code into the module.

The issue has two major consequences:

  1. Files referenced by an injected module could bypass the expected server.fs access checks, potentially exposing files outside the permitted directories.

  2. Vite's use of eval in functionality involving new Worker and import.meta.glob could allow injected code to execute on the server.

Who is affected?

The official advisory identifies applications that explicitly expose the Vite development server to the network through --host or the server.host configuration option.

Severity: Critical (CVSS v4 9.1)
Published: November 10, 2026
CVE: No CVE identifier was listed in the advisory at the time of verification.

The affected and patched versions are covered in the version table below.

Official reference: GHSA-p4f5-76q4-ffq7.

Vite Development Server Security Risks

Vite's development server provides convenient access to source files and modules. It also uses file-access controls to restrict what can be served.

Two important configuration settings are:

  • server.fs.allow: Defines the directories from which Vite is allowed to serve files.

  • server.fs.deny: Defines file patterns that Vite must block, including sensitive files such as .env and certificate files.

Security issues can arise when a vulnerability bypasses these restrictions and an attacker can reach the development server.

Common situations that increase exposure include:

  • Starting Vite with --host on an untrusted network.

  • Setting server.host: true without appropriate network restrictions.

  • Publishing development-server port 5173 through Docker or Kubernetes.

  • Running a development server in a publicly accessible staging environment.

  • Exposing a remote development environment through port forwarding.

  • Allowing untrusted users to access a shared development machine.

A normal production build does not run the Vite development server. Therefore, most of the development-server vulnerabilities discussed here do not directly affect a deployed production build. However, developers should still check advisories that specifically concern code included in production bundles.

Arbitrary File Read and Access-Control Bypass

Several Vite advisories published in 2026 involve weaknesses in file-access restrictions. These vulnerabilities can allow a network-reachable development server to return files that should be protected.

CVE-2026-39364: server.fs.deny query bypass

CVE-2026-39364 was disclosed on April 6, 2026, under GHSA-v2wj-q39q-566r.

The issue involves query parameters such as ?raw, ?import&raw, and ?import&url&inline. Under the affected conditions, these queries can bypass server.fs.deny restrictions and expose files such as .env or certificate files.

Affected versions:

  • Vite 7.1.0 to 7.3.1

  • Vite 8.0.0 to 8.0.4

Patched versions:

  • Vite 7.3.2

  • Vite 8.0.5

The advisory also lists vite-plus versions up to 0.1.15 as affected, with the fix available in 0.1.16.

The issue requires the development server to be exposed to the network. The sensitive file must also be inside a directory permitted by server.fs.allow and matched by a server.fs.deny rule.

Severity: GitHub rates the advisory Moderate, with a CVSS v4 score of 6.9. Other scoring systems may report a different severity because they use different CVSS versions.

Official reference: GHSA-v2wj-q39q-566r.

Exploitation activity reported in 2026

In a September 11, 2026 report, F5 Labs described scanning activity observed during August that included probes matching CVE-2026-39364.

The report described 807 session-grouped attacks and approximately 32,000 raw events in its honeypot telemetry. The activity included requests targeting common environment files, cloud credentials, and Terraform state files.

This telemetry indicates active scanning for exposed Vite development servers. It does not establish that every scanned system was compromised or that a particular named organization suffered a breach.

If your vulnerable development server was publicly accessible, review access logs and investigate whether sensitive files or credentials could have been exposed. Rotate potentially compromised credentials as a precaution.

Other file-read and path-related advisories

Several other 2026 advisories address different weaknesses in Vite's file-access protections.

  • CVE-2026-39363 (GHSA-p9ff-h696-f583): Arbitrary file read through the development server WebSocket. The listed patched releases are 6.4.2, 7.3.2, and 8.0.5.

  • CVE-2026-39365 (GHSA-4w7w-66w2-5vf9): Path traversal involving optimized dependency .map requests. The listed patched releases are 6.4.2, 7.3.2, and 8.0.5.

  • GHSA-rq7h-c2jc-7f22: Files outside server.fs.allow could be served under certain project-path conditions on non-Windows systems.

  • GHSA-vfpm-58rq-9qcg: The first four bytes of files outside the configured file-system boundary could be exposed through ?vite-wasm-instance.

  • GHSA-8g5g-mxqh-grgj: A query-related server.fs.deny bypass affecting the Vite 6 line.

  • GHSA-fx2h-pf6j-xcff: A server.fs.deny bypass involving Windows alternate paths.

  • GHSA-9jrq-w75r-8gcw: Cross-origin script execution through Vite custom middleware.

Do not assume that fixing one advisory automatically resolves the others. Check each advisory's affected and patched versions against the version installed in your project.

Affected Vite Versions and Security Fixes

The following tables summarize the affected and patched versions listed in the November 2026 critical RCE advisory and the April 2026 query-bypass advisory.

GHSA-p4f5-76q4-ffq7: Critical remote code execution

Affected Vite version

Patched version

8.3.0 – 8.3.6

8.3.7

8.2.0 – 8.2.4

8.2.5

8.0.0 – 8.1.6

8.1.7

7.0.0 – 7.3.7

7.3.8

4.0.0 – 6.4.5

6.4.6

The advisory also lists vite-plus versions 1.5.0 and earlier as affected, with 1.5.1 as the patched version.

CVE-2026-39364: Query-based file-read bypass

Affected Vite version

Patched version

8.0.0 – 8.0.4

8.0.5

7.1.0 – 7.3.1

7.3.2

The advisory lists vite-plus versions up to 0.1.15 as affected, with 0.1.16 as the fix.

Important: These are the minimum patched versions for the specific advisories shown, not a recommendation to stop updating at those versions. Later advisories may affect a version that was already patched for an earlier issue. Install the newest supported patch release in your version line and review the full advisory list.

How the November RCE and April File-Read Vulnerability Differ

The two vulnerabilities are separate issues and have different impacts and patch requirements.

Detail

CVE-2026-39364

GHSA-p4f5-76q4-ffq7

Published

April 6, 2026

November 10, 2026

Main impact

Reads files that server.fs.deny should block

Remote code execution and file access

Official severity

Moderate (CVSS v4 6.9)

Critical (CVSS v4 9.1)

Exposure condition

Network-reachable dev server and specific file-access conditions

Network-reachable dev server

Fixed Vite 7 release

7.3.2

7.3.8

Fixed Vite 8 release

8.0.5

8.1.7, 8.2.5, or 8.3.7 for the corresponding affected branches

For example, upgrading to Vite 7.3.2 addresses CVE-2026-39364 but does not address the November RCE. The RCE advisory lists Vite 7.3.8 as the patched release.

This is why developers should review every relevant advisory rather than assume that one security update resolves all Vite vulnerabilities.

How to Check Your Vite Version

Start by opening your project directory in a terminal.

Run:

npx vite --version

To inspect the installed dependency, use:

npm ls vite

For other package managers:

pnpm why vite


yarn why vite

Check the output for multiple installed copies of Vite. Frameworks and development tools such as Vitest, Astro, SvelteKit, and Nuxt may depend on Vite, even when you have not added it directly to your own dependencies.

You should also inspect your lockfile to identify the versions actually resolved by your package manager.

Run a dependency audit:

npm audit

Or, if you use pnpm:

pnpm audit

Finally, search your project configuration for settings that could expose the development server:

  • --host in package scripts.

  • server.host in Vite configuration.

  • preview.host in preview configuration.

  • Docker port mappings.

  • Kubernetes services and ingress rules.

  • Cloud firewall and security-group rules.

Checking the package version alone is not enough. You should also determine whether the development server is reachable from an untrusted network.

How to Update and Secure Vite

Once you identify an affected version, update Vite to a patched release.

1. Update Vite

For a project that can use the latest compatible release:

npm install vite@latest --save-dev

If you need to remain on a particular supported version line, select an appropriate patched release. For example:

npm install vite@^7.3.8 --save-dev

Check the release notes and your framework's compatibility requirements before changing major versions.

2. Update transitive dependencies

Vite may be installed through another package. If your framework or development tool depends on an outdated version, update that package as well.

Where appropriate, use package-manager controls such as:

  • npm overrides

  • Yarn resolutions

  • pnpm overrides

Do not force a dependency version without checking compatibility and testing the project.

3. Update related packages

Review packages that integrate with or bundle Vite components, including vite-plus and relevant framework integrations.

For Vite 8, ensure that the resolved Rolldown dependency comes from the patched Vite release rather than retaining an outdated component.

4. Rebuild and test

After updating dependencies, reinstall packages if necessary and test the project.

For example:

npm install

npm run build

Also test your local development server, application routes, and important workflows.

5. Rotate potentially exposed credentials

If an affected development server was reachable from an untrusted network, investigate whether sensitive files could have been accessed.

Consider rotating:

  • API keys

  • Database credentials

  • Cloud access keys

  • Deployment tokens

  • Environment-file secrets

  • Credentials stored in infrastructure-as-code state files

Review relevant access logs and cloud audit events as part of the investigation.

6. Restrict access if an immediate upgrade is not possible

If you cannot upgrade immediately, reduce exposure while preparing the update:

  • Stop exposing the development server to untrusted networks.

  • Remove unnecessary --host settings.

  • Bind the server to 127.0.0.1 where appropriate.

  • Restrict network access through firewalls and security groups.

  • Review reverse-proxy rules and access controls.

These measures reduce exposure but are not substitutes for installing the security fix.

Older Vite branches may not receive backports for every advisory. Check the official release information and plan an upgrade to a supported version where necessary.

Vite Security Best Practices

Updating Vite is only one part of securing a development environment. Follow these practices to reduce the risk of future vulnerabilities.

Keep the development server on localhost

Avoid exposing Vite to the public internet. Use --host only when necessary, such as testing on another device, and restrict access to a trusted network.

Avoid exposing port 5173 publicly

Check Docker, Kubernetes, cloud networking, and firewall settings. Ensure that the development-server port is not unintentionally published to the internet.

Protect environment variables

Never assume that Vite's file-access restrictions replace proper secrets management.

Do not put sensitive values in variables prefixed with VITE_. These variables are intended to be exposed to client-side code and can become part of the browser bundle.

Use a secrets manager or an appropriate server-side configuration for sensitive credentials.

Restrict file-system access

Set server.fs.allow to the smallest set of directories your development project actually needs. Review server.fs.deny and avoid placing unnecessary sensitive files in directories served by the development environment.

Keep dependencies updated

Use a lockfile and review dependency updates regularly. Tools such as Dependabot and Renovate can help identify outdated packages and security updates.

Run security checks in CI

Include dependency auditing or software composition analysis in your development pipeline. Configure your process to investigate and address critical security findings promptly.

Review third-party plugins

Treat Vite plugins as trusted code. A malicious or compromised plugin may execute with the privileges of the build or development process.

Only install plugins from sources you trust, and review their maintenance status and dependencies.

Monitor suspicious requests

If a development server was exposed to a network, review logs for unexpected requests involving paths such as:

  • /@fs/

  • /@id/__vite-browser-external

  • Suspicious query strings such as ?raw

  • Encoded or double-encoded path traversal patterns

These indicators are not proof of compromise by themselves. Investigate them alongside timestamps, source addresses, application logs, and cloud audit records.

Frequently Asked Questions

Is Vite safe to use?

Yes. Vite remains a widely used frontend development tool. However, like other software, it can contain security vulnerabilities. Keep it updated, follow the official security advisories, and avoid exposing the development server to untrusted networks.

Does a Vite vulnerability affect my production website?

Most of the major 2026 issues discussed in this article affect the development server. A normal production build serves generated assets and does not run the Vite development server.

However, do not assume that every Vite advisory is development-only. Some historical issues have affected code generated for particular production bundle formats. Review the scope of each advisory.

What is CVE-2026-39364?

CVE-2026-39364 is a Vite development-server file-access vulnerability involving query parameters that can bypass server.fs.deny under specific conditions. It affects Vite 7.1.0–7.3.1 and 8.0.0–8.0.4. The listed fixes are 7.3.2 and 8.0.5, respectively.

Was CVE-2026-39364 discovered in September 2026?

No. The vulnerability was disclosed on April 6, 2026. F5 Labs later reported scanning activity observed during August 2026 in a report published on September 11.

The disclosure date and the date of reported scanning activity are different events.

Is there a Vite remote code execution vulnerability?

Yes. GHSA-p4f5-76q4-ffq7, published on November 10, 2026, describes a critical remote code execution vulnerability involving the __vite-browser-external virtual module.

The official advisory identifies network-exposed development servers as affected. The patched versions include Vite 7.3.8 and 6.4.6, along with the corresponding fixed 8.x releases listed in this article.

Is the November 26 Vite advisory a stable-release vulnerability?

No. GHSA-qppr-rxr4-jjq2 specifically affects Vite 8.4.0-beta.1. The issue is fixed in 8.4.0-beta.2. The advisory does not list stable Vite releases as affected.

Is the Vite RCE the same as CVE-2026-39364?

No. They are separate security issues. CVE-2026-39364 concerns a query-based file-access restriction bypass, while GHSA-p4f5-76q4-ffq7 describes remote code execution through a virtual module. Their severity ratings and patched versions are different.

Am I affected if I never use --host?

You are less likely to meet the network-exposure conditions described in the relevant advisories because Vite normally listens on localhost by default.

However, check your configuration, Docker port mappings, remote-development tools, and network settings before concluding that your server is inaccessible to others.

Where can I find official Vite security advisories?

The official Vite GitHub Security Advisories page lists published vulnerabilities, affected versions, patched versions, and technical details:

https://github.com/vitejs/vite/security/advisories

Review the individual advisory before deciding whether a particular version of your project is affected.

How can I tell whether my Vite development server was exploited?

Review development-server access logs, reverse-proxy logs, firewall records, and cloud audit logs for unexpected requests and suspicious activity.

If a vulnerable server was publicly accessible, identify which files and credentials could have been reached. Rotate potentially exposed secrets and investigate any unusual use of those credentials.

How Softiconex Helps You Strengthen Website Security

Softiconex helps businesses strengthen their digital security through cybersecurity solutions, vulnerability assessments, security monitoring, and SOC Managed Services. Our SOC services support continuous security monitoring, threat detection, security alert analysis, and incident response coordination to help identify suspicious activity and potential threats. We also help businesses identify vulnerabilities, improve security configurations, and protect sensitive information. Whether you operate a website, web application, or business infrastructure, Softiconex can help you build a stronger security posture and reduce cyber risks. Contact Softiconex to discuss your cybersecurity and SOC requirements.


Conclusion

The Vite security advisories published in 2026 demonstrate why development-server security and dependency maintenance matter. The critical November remote code execution issue, the earlier file-access vulnerabilities, and the November 26 beta-only advisory have different affected versions and remediation requirements.

Developers should check their installed Vite versions, review the official advisories, and update to the appropriate patched releases. Just as importantly, keep development servers restricted to trusted networks, protect environment variables, and investigate possible credential exposure if a vulnerable server was accessible to outsiders.

A secure development environment is not achieved by updating one dependency alone. It requires regular maintenance, controlled network access, dependency monitoring, and a consistent approach to application security.

Sources and Further Reading