patchminder
No public exploit found CVE-2020-5216

Vulnerabilityin the secure_headers package.

Published 23 Jan 2020 · Updated 4 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 4.4
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.2% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.9.0, 5.2.0, 6.3.0
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
secure_headers
before 3.9.0
3.9.0
CVE record
secure_headers
5.0.0 to before 5.2.0
5.2.0
CVE record
secure_headers
6.0.0 to before 6.3.0
6.3.0
CVE record
secure_headers (RubyGems)
6.0.0 to before 6.3.0
6.3.0
GitHub advisory
secure_headers (RubyGems)
5.0.0 to before 5.2.0
5.2.0
GitHub advisory
secure_headers (RubyGems)
before 3.9.0
3.9.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 2 Jan 2020
    CVE ID reserved by GitHub_M.
  2. 23 Jan 2020
    Published in the CVE List.
  3. 4 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

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.

Related

Other vulnerabilities in this package

Same weakness: HTTP response splitting

All CWE-113 vulnerabilities

References
Cite this page

Patchminder. CVE-2020-5216: Vulnerability in the secure_headers package. https://patchminder.com/cve/cve-2020-5216/ (accessed 5 December 2026).