CVE-2021-27884
MEDIUM 5.1CVSS 3.1Weak 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.
- Published
- 1 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-330
- Also known as
- GHSA-2h3h-vw8r-82rp
- Sources
- NVDJSONOSV GHSA-2h3h-vw8r-82rpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.6 | AV:L/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ymfe | yapicpe:2.3:a:ymfe:yapi:*:*:*:*:*:*:*:* |
<= 1.9.2 | |
| OSV | npm | yapi-vendor | < 1.9.3 | 1.9.3 |
References
- https://github.com/YMFE/yapi/issues/2117 · Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi · Third Party Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-27884 · ADVISORY
- https://github.com/YMFE/yapi/issues/2263 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 26 Mar 2021)