patchminder
No public exploit found CVE-2020-5217

Code injectionin 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.8% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.8.0, 5.1.0, 6.2.0
In plain words

In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.8.0, 5.1.0, and 6.2.0. If user-supplied input was passed into append/override_content_security_policy_directives, a semicolon could be injected leading to directive injection. This could be used to e.g. override a script-src directive.

What to do now
  • Upgrade secure_headers to 3.8.0, 5.1.0, 6.2.0 or later, whichever matches your release line.
  • Upgrade secure_headers (RubyGems) to 3.8.0, 5.1.0, 6.2.0 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
secure_headers
before 3.8.0
3.8.0
CVE record
secure_headers
5.0.0 to before 5.1.0
5.1.0
CVE record
secure_headers
6.0.0 to before 6.2.0
6.2.0
CVE record
secure_headers (RubyGems)
6.0.0 to before 6.2.0
6.2.0
GitHub advisory
secure_headers (RubyGems)
5.0.0 to before 5.1.0
5.1.0
GitHub advisory
secure_headers (RubyGems)
before 3.8.0
3.8.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: Eval injection

All CWE-95 vulnerabilities

References
Cite this page

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