Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-54163— secure_headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input

Quick assessment

Affected
github secure_headers
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

GitHub Secure Headers是美国GitHub公司的一系列Web中间件安全防护工具。 GitHub Secure Headers 7.3.0之前版本存在安全漏洞,该漏洞源于在构建Content-Security-Policy值时未清理;、\r、\n字符,当不受信任的输入通过SecureHeaders.override_content_security_policy_directives或append API传递时,攻击者可能注入CSP指令,导致跨站脚本攻击或CSP报告泄露。

CVSS 4.7 · Medium EPSS 0.29% · P19

Affected Version Matrix 1

VendorProduct Version RangeStatus
github secure_headers < 7.3.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54163

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
secure_headers: CSP directive injection via sandbox, plugin_types, and report_to when given untrusted input
Source: CVE Program / CVE List V5
Vulnerability 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 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
GitHub Secure Headers 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GitHub Secure Headers是美国GitHub公司的一系列Web中间件安全防护工具。 GitHub Secure Headers 7.3.0之前版本存在安全漏洞,该漏洞源于在构建Content-Security-Policy值时未清理;、\r、\n字符,当不受信任的输入通过SecureHeaders.override_content_security_policy_directives或append API传递时,攻击者可能注入CSP指令,导致跨站脚本攻击或CSP报告泄露。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
github secure_headers < 7.3.0 -

II. Public POCs for CVE-2026-54163

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54163

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-54163 (1)

Vendor Advisories for CVE-2026-54163 (1)

Vendor Pages for CVE-2026-54163 (1)

Same Patch Batch · github · 2026-07-17 · 4 CVEs total

CVE-2026-15343 Path traversal vulnerability in GitHub Enterprise Server allowed writing files to arbitrar
CVE-2026-15007 Denial of service vulnerability in GitHub Enterprise Server allowed service disruption via
CVE-2026-15783 Missing Authorization vulnerability was identified in GitHub Enterprise Server that allowe

IV. Related Vulnerabilities

V. Comments for CVE-2026-54163

No comments yet


Leave a comment