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.
{
"severity": "MODERATE",
"github_reviewed_at": "2021-03-26T16:48:44Z",
"cwe_ids": [
"CWE-330"
],
"nvd_published_at": "2021-03-01T23:15:00Z",
"github_reviewed": true
}