Weak JSON Web Token in yapi-vendor
Moderate severity
GitHub Reviewed
Published
Mar 26, 2021
to the GitHub Advisory Database
•
Updated Feb 1, 2023
Description
Published by the National Vulnerability Database
Mar 1, 2021
Reviewed
Mar 26, 2021
Published to the GitHub Advisory Database
Mar 26, 2021
Last updated
Feb 1, 2023
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.
References