PT-2020-14172 · Auth0 · Jwks-Rsa+1
CVSS v3.1
9.1
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
express-jwt versions 5.3.3 and earlier
Description
The issue arises when the
algorithms entry is not specified in the configuration, potentially leading to authorization bypass when used with libraries like jwks-rsa as the secret. This occurs because the algorithms entry is not being enforced in versions up to and including 5.3.3. To be affected, one must be using express-jwt, not have algorithms configured, and use libraries such as jwks-rsa as the secret.Recommendations
For express-jwt versions 5.3.3 and earlier, specify
algorithms in the express-jwt configuration to fix the issue. For example, configure algorithms as ['RS256'] to restrict allowed algorithms. This change will not impact users if algorithms was already specified, as the patch makes algorithms a required configuration.Fix
Incorrect Authorization
Improper Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Express-Jwt
Jwks-Rsa