@vitest/ui@5.0.4

UI for Vitest

  • latest version

    5.0.5

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    13 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
    • H
    Files or Directories Accessible to External Parties

    @vitest/ui is an UI for Vitest

    Affected versions of this package are vulnerable to Files or Directories Accessible to External Parties via the Vite dev server's server.fs.deny configuration, which drops its built-in defaults (blocking .env, certificates, .npmrc, etc.) whenever any value is appended to the deny list. When @vitest/ui (or Browser Mode or the api option) starts an HTTP server, the previous fix appended the API token file to server.fs.deny after Vite had already compiled the matcher, causing Vite to discard its default protections. An unauthenticated remote attacker can then request sensitive files - such as .env files or private key material - through the Vite dev server.

    Note: This is only exploitable when Vitest runs an HTTP server, which occurs with the UI (--ui), Browser Mode, or api enabled.

    How to fix Files or Directories Accessible to External Parties?

    Upgrade @vitest/ui to version 5.0.5 or higher.

    >=5.0.0-beta.6 <5.0.5