CVEfocus › CVE database › CVE-2026-54163

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

CVSS 4.7 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2026-07-17Updated 2026-07-20Assigner: GitHub_M

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.

CWE-113CWE-79

What to do

Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ruby-secure-headersFix pendingUBUNTU-CVE-2026-54163
Ubuntu 26.04ruby-secure-headersUnder investigationUBUNTU-CVE-2026-54163
Ubuntu 24.04ruby-secure-headersUnder investigationUBUNTU-CVE-2026-54163
Ubuntu 22.04ruby-secure-headersUnder investigationUBUNTU-CVE-2026-54163
Ubuntu 20.04ruby-secure-headersFix pendingUBUNTU-CVE-2026-54163
Ubuntu 18.04ruby-secure-headersFix pendingUBUNTU-CVE-2026-54163
Debian 14ruby-secure-headersFixed7.3.0-1DEBIAN-CVE-2026-54163
Debian 13ruby-secure-headersFix pendingDEBIAN-CVE-2026-54163
Debian 12ruby-secure-headersFix pendingDEBIAN-CVE-2026-54163
RubyGems librarysecure_headersFixed7.3.0GHSA-rqq5-2gf9-4w4q

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.