CVE-2021-27884
MEDIUMCVSS 5.1/10EPSS 0.34%
Last modified
CVE-2021-27884 is a medium-severity vulnerability rated 5.1/10 on the CVSS scale. 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.. EPSS estimates a 0.34% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ymfe | Yapi | <= 1.9.2 |
References
- https://github.com/YMFE/yapi/issues/2117Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapiThird Party Advisory
- https://github.com/YMFE/yapi/issues/2117Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapiThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-27884?
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.
How severe is CVE-2021-27884?
CVE-2021-27884 has a CVSS score of 5.1/10 (MEDIUM severity). The EPSS model estimates a 0.34% probability of exploitation in the next 30 days.
How do I fix CVE-2021-27884?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
Are you affected by CVE-2021-27884?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
