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.
WS-2019-0289 - Medium Severity Vulnerability
Vulnerable Library - helmet-csp-1.2.2.tgz
Content Security Policy middleware.
Library home page: https://registry.npmjs.org/helmet-csp/-/helmet-csp-1.2.2.tgz
Dependency Hierarchy: - helmet-2.3.0.tgz (Root Library) - :x: **helmet-csp-1.2.2.tgz** (Vulnerable Library)
Found in HEAD commit: a7cf759168f0c98d6d469e2711fda2875be7080b
Found in base branch: master
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
For more information on CVSS3 Scores, click here.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