GHSA-2h3h-vw8r-82rp
Dashboard / Vulnerabilities / GHSA-2h3h-vw8r-82rp
Summary: Weak JSON Web Token in yapi-vendor
Details: 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: https://nvd.nist.gov/vuln/detail/CVE-2021-27884, https://github.com/YMFE/yapi/issues/2117, https://github.com/YMFE/yapi/issues/2263, https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi
Affected packages
Package
Name: yapi-vendor
Purl: pkg:npm/yapi-vendor
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.9.3
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
