Improper access control in Vite - CVE-2025-31486

 

Improper access control in Vite - CVE-2025-31486

Published: June 30, 2025


Vulnerability identifier: #VU112049
CSH Severity: Medium
CVSS v4: 5.9 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-31486
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to 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+.. A remote attacker can bypass implemented security restrictions and gain unauthorized access to the application.


Affected software

Vite
IBM Concert Software
IBM Maximo Application Suite - Manage Component

How to mitigate CVE-2025-31486

Install updates from vendor's website.

Vite - addressed in versions 4.5.12, 5.4.17, 6.0.14, 6.1.4
IBM Concert Software - update to 2.0.0
IBM Maximo Application Suite - Manage Component - addressed in versions 8.6.27, 8.7.21, 9.0.14

External References

Related Security Bulletins