4.7

CVE-2026-54163: secure_headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input

Deferred
AliasesUBUNTU-CVE-2026-54163DEBIAN-CVE-2026-54163GHSA-rqq5-2gf9-4w4q
Published 17-07-2026Last modified 20-07-2026

Vulnerability summary

CVE-2026-54163 is a medium (CVSS 4.7) vulnerability in github secure_headers. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 12.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.21%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 17-07-2026
    PublishedVulnerability first disclosed.
  2. 20-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.21%

Chance of exploitation in the next 30 days

Percentile

12%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.21% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • ruby-secure-headersAll versions (No fix recorded) | < 7.3.0-1
Github1 product
RubyGems1 product
  • secure_headers< 7.3.0
Ubuntu1 product
  • ruby-secure-headersAll versions (No fix recorded)

4 vendors · 4 products

References

9 links