Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @vitest/browser
  4. ›
  5. CVE-2025-24963

CVE-2025-24963: Vitest browser mode serves arbitrary files

February 4, 2025

__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.

References

  • github.com/advisories/GHSA-8gvc-j273-4wm5
  • github.com/vitest-dev/vitest
  • github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f
  • github.com/vitest-dev/vitest/commit/ed9aeba212df04b83ed01810780663ff2cdd0adf
  • github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5
  • nvd.nist.gov/vuln/detail/CVE-2025-24963

Code Behaviors & Features

Detect and mitigate CVE-2025-24963 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.4 before 2.1.9, all versions starting from 3.0.0 before 3.0.4

Fixed versions

  • 2.1.9
  • 3.0.4

Solution

Upgrade to versions 2.1.9, 3.0.4 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@vitest/browser/CVE-2025-24963.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.