Insecure Credential Comparison Affecting safe-compare package, versions <1.1.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDnpm:safe-compare:20180210
  • published14 Feb 2018
  • disclosed9 Feb 2018
  • creditJames Billingham

Introduced: 9 Feb 2018

CVE NOT AVAILABLE CWE-522  (opens in a new tab)

How to fix?

Upgrade safe-compare to version 1.1.1 or higher.

Overview

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.

CVSS Scores

version 3.1