Skip to main content
VulnerabilityPublished Updated

CVE-2026-54163: Ruby secure headers · secure_headers manages application of security headers with many safe defaults

Affects ruby-secure-headersSource GCVE Database

0
Compare

Not known to be exploited · CVSS 4.7 Medium · fixed in 7.3.0 : update ruby-secure-headers when convenient.

Data as of 24 Nov 2026, 20:44 UTC

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 7.3.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10ruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=stonkingOther threatsAffected
  • =7.1.0-1
  • =7.2.0-1
  • =7.3.0-1
Fixed in–
Ubuntu 26.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=resoluteOther threatsAffected
  • =6.3.2-2
  • =7.1.0-1
Fixed in–
Ubuntu 24.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=nobleOther threatsAffected
  • =6.3.2-1
  • =6.3.2-2
Fixed in–
Ubuntu 22.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=jammyOther threatsAffected
  • =6.3.2-1
Fixed in–
Ubuntu 20.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=focalOther threatsAffected
  • =6.0.0-1
  • =6.1.1-1
Fixed in–
Ubuntu 18.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=bionicOther threatsAffected
  • =3.7.1-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

secure_headers manages application of security headers with many safe defaults. Prior to 7.3.0, secure_headers builds the Content-Security-Policy value by stitching directives with ; separators, and build_sandbox_list_directive, build_media_type_list_directive, and build_report_to_directive interpolate caller-supplied strings without scrubbing ;, \r, or \n. When untrusted input reaches SecureHeaders.override_content_security_policy_directives or append APIs for :sandbox, :plugin_types, or :report_to, an attacker can inject a CSP directive such as script-src 'unsafe-inline' * before the legitimate script-src, enabling XSS reachability through these sinks or CSP report exfiltration. This issue is fixed in version 7.3.0.

References

Community reviews

Loading reviews…