Insecure Randomness Affecting yapi-vendor package, versions <1.10.1


0.0
medium

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.06% (27th percentile)
Expand this section
NVD
5.1 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-YAPIVENDOR-1089450
  • published 29 Mar 2021
  • disclosed 26 Mar 2021
  • credit Jaroslav Lobačevski

How to fix?

Upgrade yapi-vendor to version 1.10.1 or higher.

Overview

yapi-vendor is a YAPI

Affected versions of this package are vulnerable to Insecure Randomness. 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