Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade vitest
to version 1.6.1, 2.1.9, 3.0.5 or higher.
vitest is a Next generation testing framework powered by Vite
Affected versions of this package are vulnerable to Missing Origin Validation in WebSockets through the WebSocket server setup, due to missing checks of the Origin header and authorization mechanism. An attacker can execute arbitrary code by injecting malicious code into a test file using the saveTestFile
API and subsequently executing the file via the rerun
API.