Security Resilience

CVE-2025-31125

Info Disclosure in Vitejs Vite ≤ 4.5.11

CISA KEVActive ExploitationEUVD ExploitedPublic PoCInfo Disclosure
Published
31 March 2025
Modified
23 January 2026
KEV Added
22 January 2026
Patch / advisory
CVSS Score v3.1 5.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS Score 0.75 99.5th percentile
Risk Priority 75 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-31125 is a medium-severity Exposure of Sensitive Information to an Unauthorized Actor (CWE-200) vulnerability in Vitejs Vite. Its CVSS base score is 5.3 (Medium).

Operationally, ranked in the top 0.5% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Vite, a frontend tooling framework for JavaScript, contains an information disclosure vulnerability that allows the contents of files outside an allowed set to be read when the query parameters ?inline&import or ?raw?import are supplied to the development server. The flaw affects only deployments that explicitly expose the Vite dev server to the network via the --host flag or the server.host configuration option and is tracked under CWE-200 and CWE-284.

An unauthenticated remote attacker who can reach an exposed Vite development server can leverage the parameters to retrieve sensitive file contents, resulting in high-impact confidentiality loss. Exploitation requires user interaction and presents high attack complexity according to the CVSS 5.3 rating, limiting the practical attack surface to misconfigured developer or test environments.

The official GitHub security advisories and accompanying commit indicate that the issue is resolved in Vite versions 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11; administrators should upgrade affected instances and avoid exposing the development server to untrusted networks.

The CVE appears in the CISA Known Exploited Vulnerabilities catalog, and its EPSS score has remained elevated near 0.83–0.84, indicating sustained exploitation interest after disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.

CWE(s)
KEV Date Added
22 January 2026

Related Threats

CVEs Like This One

CVE-2025-30208Same product: Vitejs Vite
CVE-2025-58751Same product: Vitejs Vite
CVE-2025-58752Same product: Vitejs Vite
CVE-2023-34092Same product: Vitejs Vite
CVE-2024-23331Same product: Vitejs Vite
CVE-2026-39363Same product: Vitejs Vite
CVE-2025-68686Shared CWE-200both on KEV
CVE-2011-3544Shared CWE-284both on KEV
CVE-2016-2388Shared CWE-200both on KEV
CVE-2022-20821Shared CWE-200both on KEV

Affected Assets

vitejs
vite
≤ 4.5.11 · 5.0.0 — 5.4.16 · 6.0.0 — 6.0.13

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Access enforcement directly stops unauthorized actors from obtaining sensitive information.

Information flow enforcement structurally prevents sensitive data from reaching unauthorized recipients.

Protection of information at rest prevents unauthorized exposure of stored sensitive data.

Transmission confidentiality mechanisms stop exposure of sensitive data on the wire.

Documents duties and assigns access so that no single account can bypass intended restrictions.

Least privilege reduces the set of actors who can reach sensitive information.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Penetration testing and vulnerability scanning are performed to discover unintended exposure of sensitive data resulting from misconfigurations or coding errors.

blocks

Restricting anonymous or unknown access and encrypting high-value information limits the exposure of sensitive data that would otherwise be obtainable by unauthorized actors.

blocks

By requiring removal or masking of sensitive operational data before it enters test environments, the control sharply reduces the chance that such data will be exposed to unauthorized actors who have access to those environments.

finds

Ongoing audits and performance reviews of suppliers detect and correct situations where access controls or privilege assignments are weaker than contractually required, limiting an attacker's ability to exploit improper access control in the supplier's environment.

finds

Periodic independent assessment of whether documented security objectives and controls are actually implemented and effective can surface missing or bypassed access-control decisions before they are exploited.

finds

Periodic compliance reviews and corrective-action tracking detect and close gaps where access-control rules are not enforced, reducing the window in which improper access control can be exploited.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-200, a class-level weakness. Rules are authored against its narrower children: CWE-213, CWE-359, CWE-497, CWE-538, CWE-1295.
  • No fine-grained STIG row for CWE-284, a pillar-level weakness. Rules are authored against its narrower children: CWE-749, CWE-1220.

References