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.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-27860A vulnerability in the web management interface of FatPipe W…8.8
- CVE-2021-27861Layer 2 network filtering capabilities such as IPv6 RA guard…4.7
- CVE-2021-27862Layer 2 network filtering capabilities such as IPv6 RA guard…4.7
- CVE-2021-27876An issue was discovered in Veritas Backup Exec before 21.2. …8.1
- CVE-2021-27877An issue was discovered in Veritas Backup Exec before 21.2. …9.8
- CVE-2021-27878An issue was discovered in Veritas Backup Exec before 21.2. …8.8
- CVE-2021-27885usersettings.php in e107 through 2.3.0 lacks a certain e_TOK…8.8
- CVE-2021-27886rakibtg Docker Dashboard before 2021-02-28 allows command in…9.8
- CVE-2021-27887Cross-site Scripting (XSS) vulnerability in the main dashboa…5.4
- CVE-2021-27888ZendTo before 6.06-4 Beta allows XSS during the display of a…6.1
- CVE-2021-27889Cross-site Scripting (XSS) vulnerability in MyBB before 1.8.…6.1
- CVE-2021-27890SQL Injection vulnerablity in MyBB before 1.8.26 via theme p…8.8
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
