ruby-secure-headers — security advisory
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
- 6.3.2-1, 6.3.2-2, 7.1.0-1, 7.2.0-1, 7.3.0-1
- Fixed versions
- 7.3.0-1
- CVEs
- CVE-2026-54163
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:53 UTC · Revision 2
Source evidence
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:DEBIAN-CVE-2026-54163
ruby-secure-headers
Fixed versions: Not specified
ruby-secure-headers
Fixed versions: Not specified
ruby-secure-headers
Fixed versions: 7.3.0-1
Complete source record
{
"id": "bc81924d3ecc20b999820c288105f42fe4f1fc7728fbe8f7c432303a64af1b85",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-54163",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-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:DEBIAN-CVE-2026-54163",
"products": [
{
"name": {
"value": "ruby-secure-headers",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.3.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.3.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "7.1.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.2.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.3.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "ruby-secure-headers",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.3.2-2",
"evidence": "/affected/1/versions"
},
{
"value": "7.1.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.2.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.3.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "ruby-secure-headers",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.3.0-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "6.3.2-2",
"evidence": "/affected/2/versions"
},
{
"value": "7.1.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.2.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-54163",
"aliases": [
"DEBIAN-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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-secure-headers",
"purl": "pkg:deb/debian/ruby-secure-headers?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"6.3.2-1",
"6.3.2-2",
"7.1.0-1",
"7.2.0-1",
"7.3.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54163.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-secure-headers",
"purl": "pkg:deb/debian/ruby-secure-headers?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"6.3.2-2",
"7.1.0-1",
"7.2.0-1",
"7.3.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54163.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.3.0-1"
}
]
}
],
"package": {
"name": "ruby-secure-headers",
"purl": "pkg:deb/debian/ruby-secure-headers?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"6.3.2-2",
"7.1.0-1",
"7.2.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54163.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-25T09:47:28.393242280Z",
"provider": "osv",
"upstream": [
"CVE-2026-54163"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-54163"
]
},
"related_cves": [
{
"value": "CVE-2026-54163",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 445175,
"published_at": "2026-07-17T21:17:08.107+00:00"
}