Skip to content
Heist/ feed
Back to feed
Medium

ruby-secure-headers — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-54163

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.

Products
ruby-secure-headers
Affected versions
3.7.1-1, 6.0.0-1, 6.1.1-1, 6.3.2-1, 6.3.2-2, 7.1.0-1, 7.2.0-1, 7.3.0-1
Fixed versions
Not specified
CVEs
CVE-2026-54163
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:45 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-54163

core-osv · Original source

Published 17 Jul 2026, 21:17 UTC

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.

osv:UBUNTU-CVE-2026-54163

ruby-secure-headers

Fixed versions: Not specified

ruby-secure-headers

Fixed versions: Not specified

ruby-secure-headers

Fixed versions: Not specified

ruby-secure-headers

Fixed versions: Not specified

ruby-secure-headers

Fixed versions: Not specified

ruby-secure-headers

Fixed versions: Not specified

Complete source record
{
  "id": "0462f50a518a3a3a5c8f6fc32f44158d5f367c707d2fd3757f113266607d61c0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-54163",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-54163",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-54163",
    "products": [
      {
        "name": {
          "value": "ruby-secure-headers",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.7.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-secure-headers",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.1.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-secure-headers",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.3.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-secure-headers",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.3.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.3.2-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-secure-headers",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.2.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.3.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-secure-headers",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.3.2-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "7.1.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-54163",
      "aliases": [
        "UBUNTU-CVE-2026-54163"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-secure-headers",
            "purl": "pkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.7.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54163.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-secure-headers",
                "binary_version": "3.7.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-secure-headers",
            "purl": "pkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "6.0.0-1",
            "6.1.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54163.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-secure-headers",
                "binary_version": "6.1.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-secure-headers",
            "purl": "pkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "6.3.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54163.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-secure-headers",
                "binary_version": "6.3.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-secure-headers",
            "purl": "pkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "6.3.2-1",
            "6.3.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54163.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-secure-headers",
                "binary_version": "6.3.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-secure-headers",
            "purl": "pkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "7.1.0-1",
            "7.2.0-1",
            "7.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54163.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-secure-headers",
                "binary_version": "7.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-secure-headers",
            "purl": "pkg:deb/ubuntu/ruby-secure-headers?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.3.2-2",
            "7.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54163.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-secure-headers",
                "binary_version": "7.1.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:03.183029728Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-54163"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-54163",
        "https://www.cve.org/CVERecord?id=CVE-2026-54163",
        "https://github.com/github/secure_headers/security/advisories/GHSA-rqq5-2gf9-4w4q"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-54163",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359241,
  "published_at": "2026-07-17T21:17:00+00:00"
}