CVE-2020-15084: Authorization bypass in express-jwt
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2020-15084?
CVE-2020-15084 has a severity rating of Medium due to its potential for authorization bypass.
How do I fix CVE-2020-15084?
To fix CVE-2020-15084, update the express-jwt package to version 5.3.4 or later and ensure that algorithms are explicitly specified in the configuration.
What are the potential consequences of CVE-2020-15084?
The potential consequences of CVE-2020-15084 include unauthorized access to protected resources due to inadequate enforcement of specified algorithms.
Which versions of express-jwt are affected by CVE-2020-15084?
CVE-2020-15084 affects express-jwt versions up to and including 5.3.3.
Who is affected by CVE-2020-15084?
Any application using the affected versions of the express-jwt package without properly configuring the algorithms entry may be vulnerable.