logo

CVE-2021-27884 yapi-vendor

Package

Manager: npm
Name: yapi-vendor
Vulnerable Version: >=0 <1.9.3

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00056 pctl0.17529

Details

Weak 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 as a source of randomness in jwt signing. Math.random does not provide cryptographically secure random numbers. This has been patched in version 1.9.3.

Metadata

Created: 2021-03-26T16:49:26Z
Modified: 2021-07-22T15:58:18Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-2h3h-vw8r-82rp/GHSA-2h3h-vw8r-82rp.json
CWE IDs: ["CWE-330"]
Alternative ID: GHSA-2h3h-vw8r-82rp
Finding: F034
Auto approve: 1