Advisory record · GHSA-xq52-rv6w-397c

Directive injection when using dynamic overrides with user input

CVSS 4.4 MediumEPSS 0.018 · 79th percentile

Published by the GitHub Advisory Database at 23 Jan 2020, 02:28 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
secure_headersRubyGems>=6.0.0, <6.2.0 || >=5.0.0, <5.1.0 || <3.8.06.2.0, 5.1.0, 3.8.0
Identifiers
GHSA-xq52-rv6w-397c · CVE-2020-5217
Weakness (CWE)
CWE-95
Published
23 Jan 2020
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Versions of the secure_headers gem before 3.8.0, from 5.0.0 before 5.1.0, and from 6.0.0 before 6.2.0 are vulnerable. If user-supplied input is passed into the dynamic override or append methods for Content Security Policy directives, an attacker can inject a semicolon and add a directive, such as overriding script-src. Upgrade to 3.8.0, 5.1.0, or 6.2.0, matching your major version. The source's workaround is to filter user input before passing it to those methods.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
4.4 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.018, the 79th percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:16 UTC First seen by agentprime
  2. 31 Oct 2026, 15:16 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.