Skip to main content
MEDIUM

CVE-2025-31486

CVSS v3

5.3

MEDIUM

EPSS Score

40.5 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for vite.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • vitenpmall versions · fixed in 4.5.12

Vendor advisories

  • CVE-2025-31486 Red Hat Product Security11 known affected

    vite: Vite allows server.fs.deny to be bypassed with .svg or relative paths

    automation-controller.src as a component of Red Hat Ansible Automation Platform 2 · automation-eda-controller.src as a component of Red Hat Ansible Automation Platform 2 · automation-gateway.src as a component of Red Hat Ansible Automation Platform 2

Full record on NVD

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.

Technical details

Published
2025-04-03

Frequently asked questions

What is CVE-2025-31486?

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.

Is CVE-2025-31486 actively exploited?

Active exploitation of CVE-2025-31486 has not been confirmed. Its EPSS score was 40.5% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-31486?

CVE-2025-31486 has a CVSS v3 base score of 5.3 (MEDIUM severity).

Running vite? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month