{"cve":"CVE-2021-27884","nvd":{"published":"2021-03-01T23:15:13.267","modified":"2026-06-17T03:45:33.210","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":5.1},"cwes":["CWE-330"],"references":["https://github.com/YMFE/yapi/issues/2117","https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi","https://github.com/YMFE/yapi/issues/2117","https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi"],"products":["ymfe:yapi"],"source":"nvd","synced_at":"2026-10-19T21:15:50.279857260+00:00"},"epss":{"cve":"CVE-2021-27884","score":0.00338,"percentile":0.27269,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2h3h-vw8r-82rp","url":"https://osv.dev/vulnerability/GHSA-2h3h-vw8r-82rp","summary":"Weak JSON Web Token in yapi-vendor","modified":"2023-11-08T04:05:25.888063Z","packages":[{"ecosystem":"npm","name":"yapi-vendor","purl":"pkg:npm/yapi-vendor","ranges":["<1.9.3"],"fixed":["1.9.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}