# CVE-2020-5217: Directive injection when using dynamic overrides with user input

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

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

Directive injection when using dynamic overrides with user input

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

## Quick answers

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

**How severe is CVE-2020-5217?** 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.2.0.

**Is there a fix for CVE-2020-5217?** Yes. secure_headers (RubyGems): upgrade to 6.2.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-5217?** 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.2.0 or later

  ```sh
  bundle update secure_headers
  ```


## Affected products

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

## Identifiers

- CVE-2020-5217
- GHSA-xq52-rv6w-397c

## 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)
- [Limited header injection when using dynamic overrides with user input in RubyGems secure_headers](https://junglewise.ai/threats/cve-2020-5216-limited-header-injection-when-using-dynamic-overrides-with-user)
