CVE-2021-27884Ymfe Yapi
Medium 5.1
Follow: this CVE · Ymfe · Ymfe Yapi We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 3.1
- 5.1
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 30
- Auth required
- Yes
- Published
- Mar 1, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-330
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Yapi.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | yapi-vendor |
< 1.9.3 |
1.9.3 |
npm install yapi-vendor@1.9.3 |
Per OSV / GitHub Advisories (GHSA-2h3h-vw8r-82rp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ymfe | yapi | ≤ 1.9.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- securitylab.github.com Third Party Advisory