safe-compare@1.0.0 vulnerabilities

Constant-time comparison algorithm to prevent timing attacks.

  • latest version

    1.1.4

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    5 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the safe-compare package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Insecure Credential Comparison

    safe-compare is Constant-time comparison algorithm to prevent timing attacks..

    Affected versions of the package are vulnerable to Insecure Credential Comparison due to using String.prototype.length instead of Buffer.byteLength.

    How to fix Insecure Credential Comparison?

    Upgrade safe-compare to version 1.1.1 or higher.

    <1.1.1