SCA: security update for @vitest/browser (GHSA-8gvc-j273-4wm5)

high Tenable Self-Hosted Container Security Plugin ID 420821

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Vitest is a testing framework powered by Vite. The `__screenshot-error` handler on the browser mode HTTP
server that responds any file on the file system. Especially if the server is exposed on the network by
`browser.api.host: true`, an attacker can send a request to that handler from remote to get the content of
arbitrary files.This `__screenshot-error` handler on the browser mode HTTP server responds any file on the
file system. This code was added by commit `2d62051`. Users explicitly exposing the browser mode server to
the network by `browser.api.host: true` may get any files exposed. This issue has been addressed in
versions 2.1.9 and 3.0.4. Users are advised to upgrade. There are no known workarounds for this
vulnerability. (CVE-2025-24963)

Solution

Update the @vitest/browser library and its related packages to version 2.1.9 or later.

See Also

https://github.com/advisories/GHSA-8gvc-j273-4wm5

Plugin Details

Severity: High

ID: 420821

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 2/4/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2025-24963

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/4/2025

Vulnerability Publication Date: 2/4/2025

Reference Information

CVE: CVE-2025-24963

cwe: CWE-22