Skip to main content
MEDIUM

CVE-2025-58751

CVSS v3

5.3

MEDIUM

EPSS Score

1.2 %

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 5.4.20

Vendor advisories

  • CVE-2025-58751 Red Hat Product Security53 known affected

    vitejs/vite: lukeed/sirv: Vite middleware may serve files starting with the same name with the public directory

    io.cryostat-cryostat as a component of Cryostat 4 · gatekeeper/gatekeeper-rhel9 as a component of Gatekeeper 3 · migration-toolkit-virtualization/mtv-console-plugin-rhel9 as a component of Migration Toolkit for Virtualization

  • ICSA-26-071-03 CISA1 known affected

    Siemens SIDIS Prime

    SIDIS Prime

  • SSA-485750 Siemens ProductCERT1 known affected

    SSA-485750: Multiple Vulnerabilities in SIDIS Prime Before V4.0.800

    SIDIS Prime

Full record on NVD

Description

Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.

Technical details

Published
2025-09-08

Frequently asked questions

What is CVE-2025-58751?

Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.

Is CVE-2025-58751 actively exploited?

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

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

CVE-2025-58751 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