Description
Vulnerable Library - helmet-3.13.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/helmet-csp/package.json
Vulnerabilities
CVE | Severity | Dependency | Type | Fixed in (helmet version) | Remediation Possible** | Reachability | |
---|---|---|---|---|---|---|---|
WS-2019-0289 | 6.1 | helmet-csp-2.7.1.tgz | Transitive | 3.21.0 | ✅ |
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
WS-2019-0289
Vulnerable Library - helmet-csp-2.7.1.tgz
Content Security Policy middleware.
Library home page: https://registry.npmjs.org/helmet-csp/-/helmet-csp-2.7.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/helmet-csp/package.json
Dependency Hierarchy:
- helmet-3.13.0.tgz (Root Library)
- ❌ helmet-csp-2.7.1.tgz (Vulnerable Library)
Found in base branch: master
Reachability Analysis
This vulnerability is potentially reachable
cezerin-0.33.0/src/api/server/index.js (Application)
-> helmet-3.13.0/index.js (Extension)
-> helmet-csp-2.7.1/index.js (Extension)
-> helmet-csp-2.7.1/lib/check-options/index.js (Extension)
-> helmet-csp-2.7.1/lib/check-options/check-directive/index.js (Extension)
-> ❌ helmet-csp-2.7.1/lib/check-options/check-directive/boolean.js (Vulnerable Component)
Vulnerability Details
Helmet-csp before 2.9.1 is vulnerable to a Configuration Override affecting the application's Content Security Policy (CSP). The package's browser sniffing for Firefox deletes the default-src CSP policy, which is the fallback policy. This allows an attacker to remove an application's default CSP, possibly rendering the application vulnerable to Cross-Site Scripting.
Publish Date: 2019-11-18
URL: WS-2019-0289
CVSS 3 Score Details (6.1)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required
- Scope: Changed
- Impact Metrics:
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None
Suggested Fix
Type: Upgrade version
Origin: https://www.npmjs.com/advisories/1176
Release Date: 2019-11-18
Fix Resolution (helmet-csp): 2.9.1
Direct dependency fix Resolution (helmet): 3.21.0
⛑️ Automatic Remediation will be attempted for this issue.
⛑️Automatic Remediation will be attempted for this issue.