{"id":"GHSA-c3m8-x3cg-qm2c","aliases":["GHSA-c3m8-x3cg-qm2c"],"related":[],"kind":"vulnerability","state":"published","title":"Configuration Override in helmet-csp","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T20:39:53.000Z","modified":"2021-09-29T18:45:07.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"1.2.2","status":"affected","fixed":"2.9.1"}],"ecosystem":"npm","package":"helmet-csp","purl":"pkg:npm/helmet-csp","source":"ghsa"}],"references":[{"url":"https://github.com/helmetjs/csp/commit/67a69baafa8198a154f0505a0cf0875f76f6186a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/helmetjs/csp","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-HELMETCSP-469436","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1176","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c3m8-x3cg-qm2c","url":"https://github.com/advisories/GHSA-c3m8-x3cg-qm2c","licence":"CC-BY-4.0","modified":"2021-09-29T18:45:07.000Z"}],"updatedAt":"2026-11-25T22:56:45.018Z"}