VDB
Sign up
MEDIUM5.3

GHSA-434g-2637-qmqr

Elliptic's verify function omits uniqueness validation

Quick fix

GHSA-434g-2637-qmqr — elliptic: upgrade to the fixed version with the command below.

npm install elliptic@6.5.6

Details

The Elliptic package 6.5.5 for Node.js for EDDSA implementation does not perform the required check if the signature proof(s) is within the bounds of the order n of the base point of the elliptic curve, leading to signature malleability. Namely, the `verify` function in `lib/elliptic/eddsa/index.js` omits `sig.S().gte(sig.eddsa.curve.n) || sig.S().isNeg()` validation.

This vulnerability could have a security-relevant impact if an application relies on the uniqueness of a signature.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/elliptic
Introduced in: 0Fixed in: 6.5.6
Fixnpm install elliptic@6.5.6

References