ADVISORIES

GitHub Advisory Database

GHSA-h9x2-5rm7-x4gm

Insecure Comparison in secure-compare

Details

Versions of secure-compare prior to 3.0.1 are affected by a vulnerability that results in the package always returning true when comparing two strings of the same length, despite differences in the contents of those strings.

Recommendation

Upgrade to version 3.0.1 or later.

Affected packages

EcosystemPackageAffected versions
npmsecure-compare
All versions before 3.0.1 (fixed in 3.0.1)

References