IRONSMITHINTEL
MEDIUMCVSS5.3
|
Actively Exploited
|CISA KEV|CVE-2025-31125|Auth: none — unauthenticated|Reboot: required|Manual only

Vite Vitejs Improper Access Control Vulnerability

Vite Vitejs contains an improper access control vulnerability that 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.

Published Mar 31, 2025 · Updated May 16, 2026
Why patchRisk explained in plain English
Worst-case scenarioIf unpatched

A remote attacker, without authentication, can achieve full data confidentiality loss. Federal agencies are required to remediate by 2026-02-12 under CISA BOD 22-01.

How the attack worksNo clicks needed

This is a Information Disclosure (CWE-200) vulnerability in Vite Vitejs. 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. Exploitation requires remote network access, higher attack complexity, no authentication required, and user interaction required.

📧

Phishing link

🖼

Malicious file

🔓

Server compromised

Am I affected?Quick check

Probably yes if any of these apply:

IT Security
Running vite: v < 4.5.11, 5.0.0 ≤ v < 5.4.16, 6.0.0 ≤ v < 6.0.13, 6.1.0 ≤ v < 6.1.3, 6.2.0 ≤ v < 6.2.4
Real-world incidentsWhat we've seen

Active exploitation documented in the wild. Threat-research write-up: https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8

How to patch

Manual remediation steps

Apply the Vendor Patch

This vulnerability is in the CISA Known Exploited Vulnerabilities catalog — apply the vendor's security update as soon as possible.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

References

    1
    Vendor advisory: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
    1
    NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2025-31125
    1
    CISA KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
PowerShell automationComing soon

No tested PowerShell script for this entry yet. We’re prioritising automation based on user demand.