Description
secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.
Remediation
References
https://nodesecurity.io/advisories/50
https://github.com/vdemedes/secure-compare/pull/1