safe-compare@1.0.3 vulnerabilities

Constant-time comparison algorithm to prevent timing attacks.

  • latest version

    1.1.4

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    6 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the safe-compare 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
    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