{"id":"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.","aliases":["CVE-2021-27884"],"modified":"2023-11-08T04:05:25.888063Z","published":"2021-03-26T16:49:26Z","database_specific":{"github_reviewed_at":"2021-03-26T16:48:44Z","nvd_published_at":"2021-03-01T23:15:00Z","cwe_ids":["CWE-330"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27884"},{"type":"WEB","url":"https://github.com/YMFE/yapi/issues/2117"},{"type":"WEB","url":"https://github.com/YMFE/yapi/issues/2263"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi"}],"affected":[{"package":{"name":"yapi-vendor","ecosystem":"npm","purl":"pkg:npm/yapi-vendor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.9.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.9.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-2h3h-vw8r-82rp/GHSA-2h3h-vw8r-82rp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}