CVE-2021-27884

MEDIUM5.1EPSS 0.06%

Weak JSON Web Token in yapi-vendor

Published: 3/26/2021Modified: 11/8/2023
Also known as:GHSA-2h3h-vw8r-82rp

Description

Weak JSON Web Token (JWT) signing secret generation in YMFE YApi through 1.9.2 allows recreation of other users' JWT tokens. This occurs because Math.random in Node.js is used as a source of randomness in jwt signing. Math.random does not provide cryptographically secure random numbers. This has been patched in version 1.9.3.

Affected packages (1)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM5.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References (4)