CVE-2020-15084 Authorization bypass in express-jwt
- Published
- Updated
- Exploit status
- No public exploit known
Description
In express-jwt (NPM package) up and including version 5.3.3, the algorithms entry to be specified in the configuration is not being enforced. When algorithms is not specified in the configuration, with the combination of jwks-rsa, it may lead to authorization bypass. You are affected by this vulnerability if all of the following conditions apply: - You are using express-jwt - You do not have algorithms configured in your express-jwt configuration. - You are using libraries such as jwks-rsa as the secret. You can fix this by specifying algorithms in the express-jwt configuration. See linked GHSA for example. This is also fixed in version 6.0.0.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| auth0 express-jwt | <= 5.3.3; = <= 5.3.3 | after 5.3.3 | Fixed |
| npm express-jwt(npm) | < 6.0.0; <= 5.3.3 | 6.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm express-jwt(npm) | <= 5.3.3 | No fix listed |
| auth0 express-jwt | <= 5.3.3 | No fix listed |
| auth0 express-jwt | = <= 5.3.3 | No fix listed |
| npm express-jwt(npm) | < 6.0.0 | 6.0.0 |
References
- github.com third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com