CVE-2025-58751

Source
https://cve.org/CVERecord?id=CVE-2025-58751
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-58751.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-58751
Aliases
Downstream
Related
Published
2025-09-08T22:52:45.667Z
Modified
2026-02-24T01:26:06.110586Z
Severity
  • 2.3 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Vite middleware may serve files starting with the same name with the public directory
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-200",
        "CWE-22",
        "CWE-284"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58751.json"
}
References

Affected packages

Git / github.com/lukeed/sirv

Affected ranges

Type
GIT
Repo
https://github.com/lukeed/sirv
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.3.0
v0.3.1
v0.3.2
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5
v0.4.6
v1.*
v1.0.0
v1.0.1
v1.0.10
v1.0.11
v1.0.12
v1.0.13
v1.0.14
v1.0.15
v1.0.16
v1.0.17
v1.0.18
v1.0.19
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7
v1.0.8
v1.0.9
v2.*
v2.0.0
v2.0.2
v2.0.3
v2.0.4
v3.*
v3.0.0
v3.0.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-58751.json"

Git / github.com/vitejs/vite

Affected ranges

Type
GIT
Repo
https://github.com/vitejs/vite
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Introduced
Fixed
Introduced
Fixed

Affected versions

create-vite@6.*
create-vite@6.0.0
create-vite@6.0.1
create-vite@6.1.0
create-vite@6.1.1
create-vite@6.2.0
create-vite@6.2.1
create-vite@6.3.0
create-vite@6.3.1
create-vite@6.4.0
create-vite@6.4.1
create-vite@6.5.0
create-vite@7.*
create-vite@7.0.0
create-vite@7.0.1
create-vite@7.0.2
create-vite@7.0.3
create-vite@7.1.0
create-vite@7.1.1
plugin-legacy@6.*
plugin-legacy@6.0.0
plugin-legacy@6.0.1
plugin-legacy@6.0.2
plugin-legacy@6.1.0
plugin-legacy@6.1.1
plugin-legacy@7.*
plugin-legacy@7.0.0
plugin-legacy@7.0.0-beta.0
plugin-legacy@7.0.0-beta.1
plugin-legacy@7.0.1
plugin-legacy@7.1.0
plugin-legacy@7.2.0
plugin-legacy@7.2.1
v6.*
v6.0.0
v6.0.1
v6.0.10
v6.0.11
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.9
v6.1.0
v6.1.0-beta.0
v6.1.0-beta.1
v6.1.0-beta.2
v6.1.1
v6.2.0
v6.2.0-beta.0
v6.2.0-beta.1
v6.2.1
v6.2.2
v6.3.0
v6.3.0-beta.0
v6.3.0-beta.1
v6.3.0-beta.2
v6.3.1
v6.3.2
v6.3.3
v6.3.4
v6.3.5
v7.*
v7.0.0
v7.0.0-beta.0
v7.0.0-beta.1
v7.0.0-beta.2
v7.0.1
v7.0.2
v7.0.3
v7.0.4
v7.0.5
v7.0.6
v7.1.0
v7.1.0-beta.0
v7.1.0-beta.1
v7.1.1
v7.1.2
v7.1.3
v7.1.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-58751.json"