GHSA-c3m8-x3cg-qm2c
6.5medium
Configuration Override in helmet-csp
- Severity
- 6.5medium CVSS:3.1 by GitHub
- Published
- Last changed
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| helmet-csp (npm) | from 1.2.2 before 2.9.1 | GitHub Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-c3m8-x3cg-qm2c changed 2021-09-29 | CC-BY-4.0 |