GHSA-w978-rmpf-qmwg · Severity: medium · Ecosystem: rubygems — Limited header injection when using dynamic overrides with user input in RubyGems secure_headers
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.
Conclusion & alert: CVE-2020-5216 is rated Exploit Available (54.5/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.08%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.35% | 1.08% | +0.73% |
| 2 | 2025-11-21 | 0.24% | 0.35% | +0.11% |
| 3 | 2025-11-18 | — | 0.24% | — |
Full EPSS history (12 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.4 | 3.1 | MEDIUM |
|
1.3 | 2.7 | [email protected] |
| 5.8 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| 5.0 | 2.0 | MEDIUM |
|
10.0 | 2.9 | [email protected] |
GHSA-w978-rmpf-qmwg · Severity: medium · Ecosystem: rubygems — Limited header injection when using dynamic overrides with user input in RubyGems secure_headers
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2020-5216 not yet assigned priority: Debian including 1 source packages (ruby-secure-headers), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2020-5216 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2020-5216 |
ubuntu
|
medium | CVE-2020-5216 medium priority: Ubuntu including 1 source packages (ruby-secure-headers), 17 status rows across 17 suites (bionic, eoan, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 11, needed 3, DNE 2, ignored 1. | https://ubuntu.com/security/CVE-2020-5216 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| secure_headers | < 3.9.0 | cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | |
| secure_headers | >= 5.0.0, < 5.2.0 | cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | |
| secure_headers | >= 6.0.0, < 6.3.0 | cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* |
| URL | Tags |
|---|---|
| https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0 | Patch |
| https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg | Exploit Mitigation Third Party Advisory |