{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-54163","id":"CVE-2026-54163","title":"secure_headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input","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 SecureHeade","descriptionLong":"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.","published":"2026-07-17T20:19:18.186Z","updated":"2026-10-28T02:30:35.331644207Z","reserved":"2026-06-11T21:46:52.380Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["github secure_headers"],"affectedProducts":[{"vendor":"github","product":"secure_headers","defaultStatus":null,"versions":[{"version":"< 7.3.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"secure_headers","purl":"pkg:gem/secure_headers","ranges":["<7.3.0"],"fixed":["7.3.0"],"advisory":"GHSA-rqq5-2gf9-4w4q"}],"cwes":["CWE-79","CWE-113"],"aliases":["GHSA-rqq5-2gf9-4w4q"],"references":[{"url":"https://github.com/github/secure_headers/security/advisories/GHSA-rqq5-2gf9-4w4q","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/github/secure_headers/commit/286a79dea80c6a9be4ca93e0f284c923cf77e539","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/github/secure_headers/releases/tag/v7.3.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54163.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54163","tags":["advisory"]},{"url":"https://github.com/github/secure_headers","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/secure_headers/CVE-2026-54163.yml","tags":["web"]},{"url":"https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54163","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00214,"epssPercentile":0.11842,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-54163","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54163","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-54163","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rqq5-2gf9-4w4q","ok":true,"note":"GHSA-rqq5-2gf9-4w4q"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54163","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}