Is secure_headers 5.0 vulnerable?

RubyGems · 5 releases from 5.0.1 to 5.0.5 · latest secure_headers is 7.3.0 · checked 18 Nov 2026

Yes: 3 known advisories

Yes. secure_headers 5.0.5, the last 5.0 release, is affected by 3 known security advisories (3 medium), including CVE-2026-54163, CVE-2020-5217, CVE-2020-5216. Upgrade to 7.3.0 or later to fix all of them.

Upgrade with:bundle update --conservative secure_headers # Gemfile: '>= 7.3.0'

Is your project on an affected secure_headers?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting secure_headers 5.0.5

  • MediumCVE-2026-54163GHSA-rqq5-2gf9-4w4q10 Jul 2026

    Secure Headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input

    Affected
    <7.3.0
    Fixed in
    7.3.0
  • MediumCVE-2020-5217GHSA-xq52-rv6w-397c23 Jan 2020

    Directive injection when using dynamic overrides with user input

    Affected
    >=6.0.0 <6.2.0 · >=5.0.0 <5.1.0 · <3.8.0
    Fixed in
    3.8.0, 5.1.0, 6.2.0
  • MediumCVE-2020-5216GHSA-w978-rmpf-qmwg23 Jan 2020

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

    Affected
    >=6.0.0 <6.3.0 · >=5.0.0 <5.2.0 · <3.9.0
    Fixed in
    3.9.0, 5.2.0, 6.3.0

Every secure_headers 5.0.x release

Affected: 5.0.1 to 5.0.5. Latest secure_headers: 7.3.0.

VersionKnown advisories
secure_headers 5.0.5CVE-2026-54163, CVE-2020-5217, CVE-2020-5216
secure_headers 5.0.4CVE-2026-54163, CVE-2020-5217, CVE-2020-5216
secure_headers 5.0.3CVE-2026-54163, CVE-2020-5217, CVE-2020-5216
secure_headers 5.0.2CVE-2026-54163, CVE-2020-5217, CVE-2020-5216
secure_headers 5.0.1CVE-2026-54163, CVE-2020-5217, CVE-2020-5216

Which of your client projects are still on secure_headers 5.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact secure_headers version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other secure_headers versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.