GHSA-c3m8-x3cg-qm2c – helmet-csp
Package
Manager: npm
Name: helmet-csp
Vulnerable Version: >=1.2.2 <2.9.1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
Configuration Override in helmet-csp Versions of `helmet-csp` before to 2.9.1 are 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. ## Recommendation Upgrade to version 2.9.1 or later. Setting the `browserSniff` configuration to `false` in vulnerable versions also mitigates the issue.
Metadata
Created: 2020-09-03T20:39:53Z
Modified: 2021-09-29T18:45:07Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-c3m8-x3cg-qm2c/GHSA-c3m8-x3cg-qm2c.json
CWE IDs: []
Alternative ID: N/A
Finding: F184
Auto approve: 1