Vulnerability · Published Mar 1, 2021 · Assigned by mitre
CVE-2021-27884
Medium 5.1
In plain English
A medium-severity security flaw in the yapi-vendor package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.1Medium
Exploit odds (30 days)0.3%top 72.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | yapi-vendor | 1.9.3 | GHSA-2h3h-vw8r-82rp |
Affected products (as reported)
References
- https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi x_refsource_MISC
- https://github.com/YMFE/yapi/issues/2117 x_refsource_MISC