@tauri-apps/cli@1.6.2 vulnerabilities

Command line interface for building Tauri apps

  • latest version

    2.9.2

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    23 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @tauri-apps/cli 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
    Insufficiently Protected Credentials

    @tauri-apps/cli is a Command line interface for building Tauri apps

    Affected versions of this package are vulnerable to Insufficiently Protected Credentials via the vite.config.ts configuration file. An attacker can access the private key and updater key password by exploiting a misconfiguration in the Vite frontend of bundled Tauri applications. This is only exploitable if the envPrefix: ['VITE_', 'TAURI_'], snippet from the Vite guide is copied into the vite.config.ts of a Tauri project, leading to the bundling of the TAURI_PRIVATE_KEY and TAURI_KEY_PASSWORD into the Vite frontend code.

    Note This is an informational advisory describing a commonly used misconfiguration and not a classic case of a vulnerability in the code.

    How to fix Insufficiently Protected Credentials?

    Upgrade @tauri-apps/cli to version 2.0.0-alpha.16 or higher.

    <2.0.0-alpha.16