vite@6.4.4

Native-ESM powered web dev build tool

  • latest version

    8.3.8

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    1 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
    Incorrect Behavior Order: Validate Before Canonicalize

    vite is a Native-ESM powered web dev build tool

    Affected versions of this package are vulnerable to Incorrect Behavior Order: Validate Before Canonicalize via isServerAccessDeniedForTransform in packages/vite/src/node/server/middlewares/transform.ts, where the server.fs access control check is performed on the raw module ID without first stripping the query string. An attacker can append a query string (e.g. ?raw, ?url, ?inline, or ?url.svg) to a file path that would otherwise be blocked by server.fs restrictions, causing the access check to evaluate the unstripped ID and incorrectly permit access to files outside the configured allowed directories. This allows an unauthenticated remote attacker to read the contents of sensitive files that should be restricted.

    How to fix Incorrect Behavior Order: Validate Before Canonicalize?

    Upgrade vite to version 6.4.5 or higher.

    >=6.4.4 <6.4.5