Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. yapi-vendor
  4. ›
  5. CVE-2021-27884

CVE-2021-27884: Use of Insufficiently Random Values

March 26, 2021 (updated July 22, 2021)

Weak JSON Web Token (JWT) signing secret generation in YMFE YApi allows recreation of other users’ JWT tokens. This occurs because Math.random in Node.js is used.

References

  • github.com/YMFE/yapi/issues/2117
  • github.com/YMFE/yapi/issues/2263
  • github.com/advisories/GHSA-2h3h-vw8r-82rp
  • nvd.nist.gov/vuln/detail/CVE-2021-27884
  • securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi

Code Behaviors & Features

Detect and mitigate CVE-2021-27884 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.9.2

Fixed versions

  • 1.9.3

Solution

Upgrade to version 1.9.3 or above.

Impact 5.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-330: Use of Insufficiently Random Values

Source file

npm/yapi-vendor/CVE-2021-27884.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.