Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2025-24964

27
FAUCET Score

CVE-2025-24964 describes a critical Cross-site WebSocket Hijacking (CSWSH) vulnerability in Vitest, a testing framework, affecting versions prior to 1.6.1, 2.1.9, and 3.0.5. This flaw allows an attacker to achieve arbitrary remote code execution when a user accesses a malicious website while the Vitest API server is active, particularly when the 'api' option (enabled by Vitest UI) is in use. The vulnerability stems from the WebSocket server's lack of Origin header validation and authorization, enabling an attacker to inject and execute code via the saveTestFile and rerun APIs. With a CVSS score of 8.8 (High), this vulnerability presents a significant risk due to its network-based attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability. There is currently no evidence of active exploitation, public exploit code, or significant community discussion, and it is not listed in the KEV catalog.

Impacted Technologies

VendorProductVersion(s)CPE
<= 0.0.125CPE matchmatch criteria
cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*
>= 1.0.0, < 1.6.1CPE matchmatch criteria
cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*
>= 2.0.0, < 2.1.9CPE matchmatch criteria
cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*
>= 3.0.0, < 3.0.5CPE matchmatch criteria
cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*

CVSS Data

CVSS version used by this source: 3.1

9.6CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.8
Impact Score
6.0
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.67%
Probability of exploitation in next 30 days
EPSS Percentile
48.2%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0067 is in the 50th percentile among its peer group of 14,855 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.2 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (4)

npmpatch availablevia ghsa
Product: vitestFixed in: 1.6.1
npmpatch availablevia ghsa
Product: vitestFixed in: 2.1.9
npmpatch availablevia ghsa
Product: vitestFixed in: 3.0.5
github_advisoryvendor investigatingvia nvd_reference
View patch

Vendor Advisories (1)

npmGHSA-9crc-q9x8-hgqqcritical

Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening

Feb 4, 2025

References

github.com / vitest-dev/vitest/blob/9a581e1c43e5c02b11e2a8026a55ce6a8cb35114/packages/vitest/src/api/setup.ts
Product
github.com / vitest-dev/vitest/blob/9a581e1c43e5c02b11e2a8026a55ce6a8cb35114/packages/vitest/src/api/setup.ts
Product
github.com / vitest-dev/vitest/security/advisories/GHSA-9crc-q9x8-hgqq
ExploitVendor Advisory
vitest.dev / config
Product