Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. helmet-csp
  4. ›
  5. GMS-2020-287

GMS-2020-287: Configuration Override in helmet-csp

September 3, 2020 (updated September 29, 2021)

Versions of helmet-csp before to 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. Upgrade to or later. Setting the browserSniff configuration to false in vulnerable versions also mitigates the issue.

References

  • github.com/advisories/GHSA-c3m8-x3cg-qm2c
  • github.com/helmetjs/csp/commit/67a69baafa8198a154f0505a0cf0875f76f6186a
  • snyk.io/vuln/SNYK-JS-HELMETCSP-469436
  • www.npmjs.com/advisories/1176

Code Behaviors & Features

Detect and mitigate GMS-2020-287 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.2.2 before 2.9.1

Fixed versions

  • 2.9.1

Solution

Upgrade to version 2.9.1 or above.

Source file

npm/helmet-csp/GMS-2020-287.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.