{"id":"GHSA-c3m8-x3cg-qm2c","aliases":[],"url":"https://o3.security/vulnerability/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.","published":"2020-09-03T20:39:53Z","modified":"2021-09-29T18:45:07Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"helmet-csp","fixedVersion":"2.9.1"}],"fix":{"url":"https://github.com/helmetjs/csp/commit/67a69baafa8198a154f0505a0cf0875f76f6186a","label":"helmetjs/csp@67a69ba"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-29T18:45:07Z"}}