
CVE catalog
CVE-2020-5216
ruby-secure-headers: CVE-2020-5216
- Severity
- Medium · CVSS 5.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.21% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-secure-headers | sid | 7.3.0-1 | fixed |
| Debian | ruby-secure-headers | forky | 7.3.0-1 | fixed |
| Debian | ruby-secure-headers | trixie | 6.3.2-2 | fixed |
| Debian | ruby-secure-headers | bookworm | 6.3.2-1 | fixed |
| Ubuntu | ruby-secure-headers | 18.04 | 3.7.1-1 | vulnerable |
| Ubuntu | ruby-secure-headers | 20.04 | 6.0.0-1 | vulnerable |
| Ubuntu | ruby-secure-headers | 20.04 | 6.1.1-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-secure-headers | source | sid | 6.3.1-1 | not yet assigned | Not reported | [949998] |
| Debian | ruby-secure-headers | source | forky | 6.3.1-1 | not yet assigned | Not reported | [949998] |
| Debian | ruby-secure-headers | source | trixie | 6.3.1-1 | not yet assigned | Not reported | [949998] |
| Debian | ruby-secure-headers | source | bookworm | 6.3.1-1 | not yet assigned | Not reported | [949998] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-secure-headers]Fixed
Details (2)
6.3.2-1· all · bookwormFixed · Fixed:
6.3.1-1dsa · ruby-secure-headers · debian · bookworm; dsa · ruby-secure-headers · debian · 12
6.3.2-1· all · bookwormFixed · Fixed:
6.3.1-1dsa · ruby-secure-headers · debian · bookworm; dsa · ruby-secure-headers · debian · 12
[Debian 13 (Trixie)]
- [ruby-secure-headers]Fixed
Details (2)
6.3.2-2· all · trixieFixed · Fixed:
6.3.1-1dsa · ruby-secure-headers · debian · 13
6.3.2-2· all · trixieFixed · Fixed:
6.3.1-1dsa · ruby-secure-headers · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-5216]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-5216]
- [https://security-tracker.debian.org/tracker/CVE-2020-5216]
- [https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-5216.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]