Advisory

GHSA-2h3h-vw8r-82rp

Also known as: CVE-2021-27884

Summary

Weak JSON Web Token in yapi-vendor

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-26 16:49 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

yapi-vendor

npm · All systems

Affected

  • introduced 0, fixed 1.9.3 (semver)

Fixed versions

1.9.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences