Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-31486 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. 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 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-200Exposure of Sensitive Information to an Unauthorized Actor[email protected]
CWE-284Improper Access Control[email protected]

Affected Products

ProductVersions
Vite
>= 6.2.0, <= 6.2.4 (semver)
>= 6.1.0, <= 6.1.3 (semver)
>= 6.0.0, <= 6.0.13 (semver)
>= 5.0.0, <= 5.4.16 (semver)
<= 4.5.11 (semver)

CPE

  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*

Remediation

  • Upgrade: 6.2.5moderate effort
  • Upgrade: 6.1.4 (>= 6.1.0, < 6.2.0)moderate effort
  • Upgrade: 6.0.14 (>= 6.0.0, < 6.1.0)moderate effort
  • Upgrade: 5.4.17 (>= 5.4.0, < 6.0.0)moderate effort
  • Upgrade: 4.5.12 (<= 4.5.11)moderate effort
  • Mitigation:low effort

    Do not expose the Vite dev server to the network by avoiding the use of the --host option or the server.host config option.

Change History

4 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-31486
NVD Published Date:
Apr 3, 2025
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2025-31486 Details - Not Deferred