CVE-2020-5216
Severity CVSS v4.0:
Pending analysis
Type:
CWE-74
Injection
Publication date:
23/01/2020
Last modified:
18/02/2020
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.
Impact
Base Score 3.x
5.80
Severity 3.x
MEDIUM
Base Score 2.0
5.00
Severity 2.0
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | 3.9.0 (excluding) | |
| cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | 5.0.0 (including) | 5.2.0 (excluding) |
| cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | 6.0.0 (including) | 6.3.0 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



