VDB
Sign up
HIGH8.7

GHSA-w8q8-93cx-6h7r

jsrsasign: Missing cryptographic validation during DSA signing enables private key extraction

Quick fix

GHSA-w8q8-93cx-6h7r — jsrsasign: upgrade to the fixed version with the command below.

npm install jsrsasign@11.1.1

Details

Versions of the package jsrsasign before 11.1.1 are vulnerable to Missing Cryptographic Step via the KJUR.crypto.DSA.signWithMessageHash process in the DSA signing implementation. An attacker can recover the private key by forcing r or s to be zero, so the library emits an invalid signature without retrying, and then solves for x from the resulting signature.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/jsrsasign
Introduced in: 0Fixed in: 11.1.1
Fixnpm install jsrsasign@11.1.1

References