Skip to main content
MEDIUM

CVE-2020-5216

CVSS v3

5.8

MEDIUM

EPSS Score

1.2 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for secure_headers.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • secure_headersRubyGemsall versions · fixed in 3.9.0

Vendor advisories

  • CVE-2020-5216 Red Hat Product Security1,274 products fixed · 2 known affected

    rubygem-secure_headers: limited header injection when using dynamic overrides with user input

    cfme-gemset as a component of CloudForms Management Engine 5 · cfme-gemset.src as a component of CloudForms Management Engine 5

  • RHSA-2020:4366 Red Hat Product Security1,251 products fixed

    Red Hat Security Advisory: Satellite 6.8 release

Full record on NVD

Description

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.

Technical details

Published
2020-01-23

Frequently asked questions

What is CVE-2020-5216?

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.

Is CVE-2020-5216 actively exploited?

Active exploitation of CVE-2020-5216 has not been confirmed. Its EPSS score was 1.2% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2020-5216?

CVE-2020-5216 has a CVSS v3 base score of 5.8 (MEDIUM severity).

Running secure_headers? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month