@vitest/ui@2.0.0-beta.3

UI for Vitest

  • latest version

    4.1.10

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    19 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @vitest/ui package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Missing Authorization

    @vitest/ui is an UI for Vitest

    Affected versions of this package are vulnerable to Missing Authorization through the api and browser.api request handlers in the server and UI components. An attacker can run tests, modify project files, or overwrite snapshots by connecting to an exposed API/UI server and invoking the interactive actions that trigger file writes or test execution. When the API server is reachable from the network, the vulnerable code paths in the browser UI and browser command handlers allow write and exec operations without enforcing the intended restrictions, enabling a remote client to modify source files, save attachments, and launch test files on the host machine. This can corrupt the project workspace and execute attacker-controlled code within the Vitest process.

    How to fix Missing Authorization?

    Upgrade @vitest/ui to version 3.2.5, 4.1.0-beta.3 or higher.

    <3.2.5>=4.0.0-beta.1 <4.1.0-beta.3