CVE-2026-54163

Source
https://cve.org/CVERecord?id=CVE-2026-54163
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54163.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54163
Aliases
Downstream
Published
2026-07-17T20:19:18.186Z
Modified
2026-07-22T05:29:54.254812216Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
secure_headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input
Details

secureheaders manages application of security headers with many safe defaults. Prior to 7.3.0, secureheaders builds the Content-Security-Policy value by stitching directives with ; separators, and buildsandboxlistdirective, buildmediatypelistdirective, and buildreporttodirective interpolate caller-supplied strings without scrubbing ;, \r, or \n. When untrusted input reaches SecureHeaders.overridecontentsecuritypolicydirectives or append APIs for :sandbox, :plugintypes, or :reportto, 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54163.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-113",
        "CWE-79"
    ]
}
References

Affected packages

Git / github.com/github/secure_headers

Affected ranges

Type
GIT
Repo
https://github.com/github/secure_headers
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "7.3.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

2.*
2.0.0
2.2.0
2.2.1
2.2.2
2.2.3
2.2.4
2.3.0
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
v.*
v.2.0.0.pre2
v0.*
v0.4.2
v0.4.3
v1.*
v1.1.1
v1.3.2
v1.3.3
v1.3.4
v2.*
v2.0.0.pre
v2.0.1
v2.0.2
v2.1.0
v3.*
v3.0.0
v3.0.0.rc1
v3.0.1
v3.0.2
v3.0.3
v3.1.0
v3.1.1
v3.1.2
v3.2.0
v3.3.0
v3.3.1
v3.3.2
v3.4.0
v3.4.1
v3.5.0
v3.5.0.pre
v3.5.1
v3.6.0
v3.6.1
v3.6.3
v3.6.4
v4.*
v4.0.0
v4.0.0.alpha01
v4.0.0.alpha02
v4.0.0.alpha03
v4.0.0.alpha04
v4.0.1
v5.*
v5.0.0.alpha01
v5.0.1
v5.0.2
v5.0.3
v5.0.4
v5.0.5
v6.*
v6.0.0.alpha01
v6.0.0.alpha02
v6.0.0.alpha03
v6.1.0
v6.1.1
v6.1.2
v6.2.0
v6.3.0
v6.3.1
v6.3.2
v6.3.3
v6.3.4
v6.4.0
v6.5.0
v6.6.0
v6.7.0
v7.*
v7.0.0
v7.1.0
v7.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54163.json"