Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 2.1%top 20%

CVE-2026-39364: CWE-180: Incorrect Behavior Order: Validate Before Canonicalize in vitejs vite

0
High
VulnerabilityCVE-2026-39364cvecve-2026-39364cwe-180cwe-284
Published: 04/07/2026 (04/07/2026, 19:12:47 UTC)
Source: CVE Database V5
Vendor/Project: vitejs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

vitejs/vite
pkg:npm/vitejs/vite
Affected versions
<7.3.2<8.0.5

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

AILast updated: 07/15/2026, 09:05:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses