Skip to content

CVE-2021-27884 Weak JSON Web Token in yapi-vendor

MediumCVSS 5.1 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm yapi-vendor(npm) < 1.9.3; <= 1.9.2 1.9.3 Fixed
ymfe yapi <= 1.9.2 after 1.9.2 Fixed

Affected products

ProductAffected versionsFixed in
npm yapi-vendor(npm) <= 1.9.2 No fix listed
ymfe yapi <= 1.9.2 No fix listed
npm yapi-vendor(npm) < 1.9.3 1.9.3

References