All reports
Medium

Weak JSON Web Token in yapi-vendor

Affected versions

Affected versions
<= 1.9.2
Fixed version
1.9.3

Exploitation

CVE-2021-27884

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-22

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.

Links