SB2025082201 - Missing Origin Validation in WebSockets in Vitest



SB2025082201 - Missing Origin Validation in WebSockets in Vitest

Published: August 22, 2025

Security Bulletin ID SB2025082201
Severity
High
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 security vulnerability.


1) Missing Origin Validation in WebSockets (CVE-ID: CVE-2025-24964)

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to WebSocket server does not check Origin header and did not have any authorization mechanism and was vulnerable to CSWSH attacks. This WebSocket server has `saveTestFile` API that can edit a test file and `rerun` API that can rerun the tests. . A remote attacker can execute arbitrary code by injecting a code in a test file by the `saveTestFile` API and then running that file by calling the `rerun` API. This vulnerability can result in remote code execution for users that are using Vitest serve API.


Remediation

Install update from vendor's website.