Skip to main content
CVE-2026-54163VulnerabilityPublished

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

Affects secure_headersSource GCVE Database

0
Compare

Not known to be exploited · CVSS 4.7 Medium : upgrade to 7.3.0 when convenient.

Data as of 3 Dec 2026, 18:37 UTC

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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 4 Dec 2026.

What to do

Upgrade secure_headers to 7.3.0.

Affected software

ProductAffectedFixed in
RubyGemssecure_headersAffected
  • <7.3.0
Fixed in
  • 7.3.0
Ubuntu 18.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=bionicOther threatsAffected
  • =3.7.1-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 22.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=jammyOther threatsAffected
  • =6.3.2-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 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–

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

AI-suggested

Upgrade secure_headers to version 7.3.0 or later, where this vulnerability is fixed. Prior versions improperly sanitize input to CSP directives, allowing injection. No other mitigations are specified or recommended by the vendor.

Description

secure_headers versions prior to 7.3.0 contain a vulnerability where untrusted input can be injected into Content-Security-Policy (CSP) directives without proper sanitization. This improper neutralization allows attackers to insert malicious CSP directives such as script-src 'unsafe-inline', potentially enabling cross-site scripting (XSS) attacks or CSP report exfiltration. The issue is resolved in version 7.3.0.

References

Community reviews

Loading reviews…