Secure Headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input
Affects secure_headersSource GCVE Database
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemssecure_headers | Affected
| Fixed in
|
Ubuntu 18.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 26.10ruby-secure-headerspkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=stonkingOther threats | Affected
| 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
- github.com/github/secure_headers/security/advisories/GHSA-rqq5-2gf9-4w4q (opens in a new tab)
- github.com/github/secure_headers/commit/286a79dea80c6a9be4ca93e0f284c923cf77e539 (opens in a new tab)
- github.com/github/secure_headers/releases/tag/v7.3.0 (opens in a new tab)
- ubuntu.com/security/CVE-2026-54163 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-54163 (opens in a new tab)