Vulnerabilityin the secure_headers package.
No public exploit found; not on exploited lists.
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.
- Upgrade secure_headers to 3.9.0, 5.2.0, 6.3.0 or later, whichever matches your release line.
- Upgrade secure_headers (RubyGems) to 3.9.0, 5.2.0, 6.3.0 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 2 Jan 2020CVE ID reserved by GitHub_M.
- 23 Jan 2020Published in the CVE List.
- 4 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other vulnerabilities in this package
Same weakness: HTTP response splitting
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2020-5216: Vulnerability in the secure_headers package. https://patchminder.com/cve/cve-2020-5216/ (accessed 5 December 2026).