Bug 2357264 (CVE-2025-31486) - CVE-2025-31486 vite: Vite allows server.fs.deny to be bypassed with .svg or relative paths
Summary: CVE-2025-31486 vite: Vite allows server.fs.deny to be bypassed with .svg or r...
Keywords:
Status: NEW
Alias: CVE-2025-31486
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-03 19:01 UTC by OSIDB Bzimport
Modified: 2025-06-17 08:28 UTC (History)
46 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-03 19:01:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.