Skip to main content
Network Thinking Solutions Logo

CVE-2025-31125

Vite information disclosure via server.fs.deny bypass

All CVEs
CVE-2025-31125
Known exploited · CISA KEV
Published 3/31/2025

Vite information disclosure via server.fs.deny bypass

Vendor advisory
CVSS7.5High

Overview

Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.

Published
3/31/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

Known exploited · CISA KEV

The source record flags evidence of exploitation in the wild. Whether a specific system is affected depends on the product, version, and advisory conditions.

Added to KEV: Not available

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
vite
vitejs
< 4.5.11

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
vite
vitejs
≥ 5.0.0, < 5.4.16

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
vite
vitejs
≥ 6.0.0, < 6.0.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
vite
vitejs
≥ 6.1.0, < 6.1.3

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
vite
vitejs
≥ 6.2.0, < 6.2.4

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
vite
vitejs
>= 6.2.0, < 6.2.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
vite
vitejs
>= 6.1.0, < 6.1.3

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
vite
vitejs
>= 6.0.0, < 6.0.13

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
vite
vitejs
>= 5.0.0, < 5.4.16

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
vite
vitejs
< 4.5.11

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.