LiveActive security incident?Get immediate response
CVE Record

CVE-2025-31125: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

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.

MediumCVSS 5.3Known exploitedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2025-31125 can let an attacker read files that Vite intended to block, but only when a Vite development server is deliberately exposed to a network. The business risk is accidental disclosure of sensitive local files from developer or build environments. CISA lists it as known exploited, so exposed dev servers should be treated urgently.

Executive priority

Prioritize remediation for any exposed development servers. The base severity is medium, but CISA KEV status and potential sensitive file disclosure raise operational urgency. Closed or localhost-only development environments are lower priority but should still upgrade during normal dependency maintenance.

Technical view

Vite’s file-system deny controls can be bypassed through special raw or inline import query handling. Affected ranges include Vite before 4.5.11 and vulnerable 5.x and 6.x ranges. CVSS is 5.3 with network attack vector, high complexity, no privileges, user interaction required, and high confidentiality impact.

Likely exposure

Exposure is limited to organizations running affected Vite versions and exposing the Vite development server to a network through host configuration. Production static sites are not described as affected in the provided sources. The highest concern is internet- or intranet-reachable developer tooling with sensitive local files nearby.

Exploitation context

CISA KEV status supports known exploitation, but the provided bundle does not describe campaign details, scale, exploit maturity, or targeted sectors. Vendor information says impact depends on an exposed Vite dev server, making validation of deployment posture essential before assuming broad exposure.

Researcher notes

Do not generalize this to all Vite applications. The source bundle identifies exposed dev servers as the affected condition. Validate version, host exposure, and file-system deny behavior carefully. The provided evidence confirms fixed versions and KEV status, but not exploit telemetry or detailed attacker procedures.

Mitigation direction

  • Upgrade Vite to 6.2.4, 6.1.3, 6.0.13, 5.4.16, 4.5.11, or later.
  • Remove public or unnecessary network exposure for Vite development servers.
  • Review Vite host configuration for intentional exposure only.
  • Check vendor guidance for any newer remediation notes.
  • Restrict developer tooling access to trusted networks only.

Validation and detection

  • Inventory projects and lockfiles for affected Vite versions.
  • Identify Vite dev servers reachable from untrusted networks.
  • Review configuration for host settings exposing the dev server.
  • Confirm upgraded versions in dependency manifests and resolved packages.
  • Check logs or monitoring for suspicious access to dev-server file endpoints.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-284: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-31125 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.3 (3.1)
Known Exploited
Yes
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N1.63.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.3Medium
CVSS 3.1 vector shape for CVE-2025-31125Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
vitejsvite>= 6.2.0, < 6.2.4, >= 6.1.0, < 6.1.3, >= 6.0.0, < 6.0.13, >= 5.0.0, < 5.4.16, < 4.5.11Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-284 · source CWE mapping

Improper Access Control

Improper Access Control represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.