vite@6.3.0-beta.1 vulnerabilities

Native-ESM powered web dev build tool

  • latest version

    7.2.7

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the vite 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
    • M
    Directory Traversal

    vite is a Native-ESM powered web dev build tool

    Affected versions of this package are vulnerable to Directory Traversal via the server.fs.deny function. An attacker can access restricted files by appending a backslash to the URL when the development server is running on Windows and is explicitly exposed to the network.

    Note: This is only exploitable if the server is explicitly exposed to the network using the command line parameter --host or the config option server.host.

    How to fix Directory Traversal?

    Upgrade vite to version 5.4.21, 6.4.1, 7.0.8, 7.1.11 or higher.

    <5.4.21>=6.0.0 <6.4.1>=7.0.0 <7.0.8>=7.1.0 <7.1.11
    • L
    Relative Path Traversal

    vite is a Native-ESM powered web dev build tool

    Affected versions of this package are vulnerable to Relative Path Traversal via improper enforcement of server.fs settings. An attacker can access arbitrary HTML files on the server by sending crafted requests to the preview server.

    Note: This is only exploitable if the server is explicitly exposed to the network using the --host flag or the server.host configuration option, and the application uses appType set to 'spa' (default) or 'mpa'.

    How to fix Relative Path Traversal?

    Upgrade vite to version 5.4.20, 6.3.6, 7.0.7, 7.1.5 or higher.

    <5.4.20>=6.0.0 <6.3.6>=7.0.0 <7.0.7>=7.1.0 <7.1.5