samsilentdemo / juice-shop

MIT License
0 stars 0 forks source link

CVE-2020-15084 (Critical) detected in express-jwt-0.1.3.tgz #11

Open mend-for-github-com[bot] opened 3 months ago

mend-for-github-com[bot] commented 3 months ago

CVE-2020-15084 - Critical Severity Vulnerability

Vulnerable Library - express-jwt-0.1.3.tgz

JWT authentication middleware.

Library home page: https://registry.npmjs.org/express-jwt/-/express-jwt-0.1.3.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/express-jwt/package.json

Dependency Hierarchy: - :x: **express-jwt-0.1.3.tgz** (Vulnerable Library)

Found in HEAD commit: b486629143e5680945bae9ae5f1ab9206efee426

Found in base branch: master

Vulnerability Details

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.

Publish Date: 2020-06-30

URL: CVE-2020-15084

CVSS 3 Score Details (9.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/auth0/express-jwt/security/advisories/GHSA-6g6m-m6h5-w9gf

Release Date: 2020-06-30

Fix Resolution: 6.0.0