CVE-2020-5216
published medium CVSS 3.1 · 4.4Limited header injection when using dynamic overrides with user input in RubyGems secure_headers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| — | secure_headers< 3.9.0 · >= 5.0.0, < 5.2.0 · >= 6.0.0, < 6.3.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| secure_headers | < 3.9.0 (affected)>= 5.0.0, < 5.2.0 (affected)>= 6.0.0, < 6.3.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-113 CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
References
2Provider assertions
2GitHub_M · cna
Limited header injection when using dynamic overrides with user input in RubyGems secure_headers
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 991ee74f9648fb2f31283fff2581b3299b9631d0d61d140df361f99179bdb32a
- Ingested
- 23 Sep 2026, 07:51:02 UTC
- Source record
- Official CVE record