{"id":"GHSA-c3m8-x3cg-qm2c","summary":"Configuration Override in helmet-csp","details":"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.\n\n\n## Recommendation\n\nUpgrade to version 2.9.1 or later. Setting the `browserSniff` configuration to `false` in vulnerable versions also mitigates the issue.","modified":"2021-09-29T18:45:07Z","published":"2020-09-03T20:39:53Z","database_specific":{"github_reviewed_at":"2020-08-31T18:50:01Z","nvd_published_at":null,"cwe_ids":[],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/helmetjs/csp/commit/67a69baafa8198a154f0505a0cf0875f76f6186a"},{"type":"WEB","url":"https://github.com/helmetjs/csp"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-HELMETCSP-469436"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1176"}],"affected":[{"package":{"name":"helmet-csp","ecosystem":"npm","purl":"pkg:npm/helmet-csp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.2.2"},{"fixed":"2.9.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-c3m8-x3cg-qm2c/GHSA-c3m8-x3cg-qm2c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}