Live threats

All CVEs / Ymfe

CVE-2021-27884Ymfe Yapi

Medium 5.1

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yapi.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
ymfeyapi≤ 1.9.2

Official sources

References

Links published by the sources. Open them with care.