{"id":"CVE-2021-27884","sourceIdentifier":"cve@mitre.org","published":"2021-03-01T23:15:13.267","lastModified":"2026-06-17T03:45:33.210","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"La generación de secretos de firma débil de JSON Web Token (JWT) en YMFE YApi versiones hasta 1.9.2, permite la recreación de los tokens JWT de otros usuarios.&#xa0;Esto ocurre porque se usa Math.random en Node.js"}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","baseScore":5.1,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.5,"impactScore":2.5}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:N","baseScore":3.6,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"LOW","exploitabilityScore":3.9,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-330"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ymfe:yapi:*:*:*:*:*:*:*:*","versionEndIncluding":"1.9.2","matchCriteriaId":"D457FF7A-2FFE-425F-A0B8-C6F292C4DA10"}]}]}],"references":[{"url":"https://github.com/YMFE/yapi/issues/2117","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://github.com/YMFE/yapi/issues/2117","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]}]}