Advisory details:
github_osv / GHSA-2h3h-vw8r-82rp
| Advisory ID | github_osv/GHSA-2h3h-vw8r-82rp |
| Aliases |
CVE-2021-27884
|
| Summary | Weak JSON Web Token in yapi-vendor 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. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 4.6 |
| Risk | 2.3 |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| System | Score | Found at |
|---|---|---|
| cvssv3.1 | 5.1 | https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-2h3h-vw8r-82rp/GHSA-2h3h-vw8r-82rp.json |
| generic_textual | MODERATE |
| Reference id | Reference type | URL |
|---|---|---|
| https://github.com/YMFE/yapi/issues/2117 | ||
| https://github.com/YMFE/yapi/issues/2263 | ||
| https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi | ||
| CVE-2021-27884 | https://nvd.nist.gov/vuln/detail/CVE-2021-27884 |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
There are no SSVC decisions available.