CVE-2026-39364: CWE-180: Incorrect Behavior Order: Validate Before Canonicalize in vitejs vite
Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.
AI Analysis
Technical Summary
CVE-2026-39364 is a high-severity vulnerability in the Vite dev server where files intended to be blocked by the server.fs.deny configuration can be accessed with HTTP 200 responses if specific query parameters (?raw, ?import&raw, or ?import&url&inline) are appended. This occurs in Vite versions from 7.1.0 up to but not including 7.3.2 and 8.0.5. The root cause is an incorrect behavior order: validation is performed before canonicalization, allowing bypass of file access restrictions. The vulnerability is fixed in Vite versions 7.3.2 and 8.0.5. Red Hat has published advisories addressing this issue and providing updates.
Potential Impact
An attacker can retrieve sensitive files such as environment files (.env) and certificate files (*.crt) from the Vite development server that should be blocked by server.fs.deny. This could lead to exposure of sensitive configuration and secrets. The vulnerability does not require privileges or user interaction but requires sending crafted HTTP requests with specific query parameters. The CVSS 4.0 score is 8.2 (high severity), indicating a significant impact on confidentiality.
Mitigation Recommendations
A fix is available in Vite versions 7.3.2 and 8.0.5. Users should upgrade to these or later versions to remediate this vulnerability. Refer to the Red Hat advisories for detailed update instructions. No additional mitigations are specified beyond applying the official patches.
CVE-2026-39364: CWE-180: Incorrect Behavior Order: Validate Before Canonicalize in vitejs vite
Description
Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.
CVSS v4.0
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-39364 is a high-severity vulnerability in the Vite dev server where files intended to be blocked by the server.fs.deny configuration can be accessed with HTTP 200 responses if specific query parameters (?raw, ?import&raw, or ?import&url&inline) are appended. This occurs in Vite versions from 7.1.0 up to but not including 7.3.2 and 8.0.5. The root cause is an incorrect behavior order: validation is performed before canonicalization, allowing bypass of file access restrictions. The vulnerability is fixed in Vite versions 7.3.2 and 8.0.5. Red Hat has published advisories addressing this issue and providing updates.
Potential Impact
An attacker can retrieve sensitive files such as environment files (.env) and certificate files (*.crt) from the Vite development server that should be blocked by server.fs.deny. This could lead to exposure of sensitive configuration and secrets. The vulnerability does not require privileges or user interaction but requires sending crafted HTTP requests with specific query parameters. The CVSS 4.0 score is 8.2 (high severity), indicating a significant impact on confidentiality.
Mitigation Recommendations
A fix is available in Vite versions 7.3.2 and 8.0.5. Users should upgrade to these or later versions to remediate this vulnerability. Refer to the Red Hat advisories for detailed update instructions. No additional mitigations are specified beyond applying the official patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-06T21:29:17.349Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-39364","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","vendor":"Red Hat"}]
Threat ID: 69d55f07aaed68159a562944
Added to database: 04/07/2026, 19:46:15 UTC
Last enriched: 07/15/2026, 09:05:56 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 246
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.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.