# CVE-2020-5216: Limited header injection when using dynamic overrides with user input in RubyGems secure_headers

Source: https://junglewise.ai/threats/cve-2020-5216-limited-header-injection-when-using-dynamic-overrides-with-user  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-01-23  
License: CC BY 4.0 with a link back

CVE-2020-5216 · Severity: low · CVSS 3.1 · Published 2020-01-23

Limited header injection when using dynamic overrides with user input in RubyGems secure_headers

Technologies: [secure_headers (RubyGems)](https://junglewise.ai/threats/technologies/secure-headers). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2020-5216 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-5216 being exploited in the wild.

**How severe is CVE-2020-5216?** Low severity, with a CVSS score of 3.1, published 23 January 2020.

**Which products and versions are affected?** secure_headers (RubyGems) ECOSYSTEM:introduced=6.0.0,fixed=6.3.0.

**Is there a fix for CVE-2020-5216?** Yes. secure_headers (RubyGems): upgrade to 6.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-5216?** Check whether you run secure_headers (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- secure_headers (RubyGems): upgrade to 6.3.0 or later

  ```sh
  bundle update secure_headers
  ```


## Affected products

- secure_headers (RubyGems) ECOSYSTEM:introduced=6.0.0,fixed=6.3.0

## Identifiers

- CVE-2020-5216
- GHSA-w978-rmpf-qmwg

## Related threats

- [GitHub secure_headers CSP directive injection in sandbox and report_to](https://junglewise.ai/threats/cve-2026-54163-github-secure-headers-csp-directive-injection-in-sandbox-and)
- [Directive injection when using dynamic overrides with user input](https://junglewise.ai/threats/cve-2020-5217-directive-injection-when-using-dynamic-overrides-with-user-input)
