CyberRota Analysis
AI-GeneratedThe Vitest testing framework versions 4.0.17 to 4.1.6 and 5.0.0-beta.3 are vulnerable due to improper handling of the otelCarrier query parameter, which allows attackers to execute arbitrary JavaScript and potentially retrieve the VITEST_API_TOKEN for authenticated API calls. This critical vulnerability poses a significant risk to any organization using affected versions, particularly those relying on Vitest for testing in their development environments. Users should prioritize upgrading to versions 4.1.6 or 5.0.0-beta.3 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Vitest is a testing framework powered by Vite. From 4.0.17 until 4.1.6 and 5.0.0-beta.3, Vitest Browser Mode served /__vitest_test__/ with the otelCarrier query parameter inserted directly into an inline module script, allowing a crafted browser-runner URL to execute arbitrary JavaScript in the Vitest server origin and recover VITEST_API_TOKEN for authenticated API calls. This issue is fixed in versions 4.1.6 and 5.0.0-beta.3.