Vulnerability

CVE-2020-5216

mediumCVSS 3.1 5.8Published 23 Jan 2020

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.9.0, 5.2.0, and 6.3.0. If user-supplied input was passed into append/override_content_security_policy_directives, a newline could be injected leading to limited header injection. Upon seeing a newline in the header, rails will silently create a new Content-Security-Policy header with the remaining value of the original string. It will continue to create new headers for each newline. This has been fixed in 6.3.0, 5.2.0, and 3.9.0.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Twitter secure headers

Weakness type

References

  • github.com /twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b…
  • github.com /twitter/secure_headers/security/advisories/GHSA-w978-rmpf-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning