secure_headers is vulnerable to Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
47
CVE Score
Medium
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
secure_headers' build_sandbox_list_directive, build_media_type_list_directive, and build_report_to_directive interpolate caller input into the CSP header without stripping ;/ / (unlike build_source_list_directive, which already does). Untrusted input reaching :sandbox, :plugin_types, or :report_to lets an attacker inject a ;-delimited script-src directive that — since both keys sort before :script_src in BODY_DIRECTIVES — wins under CSP's first-occurrence rule, overriding the real policy with 'unsafe-inline' * and enabling XSS.
Upgrade the secure_headers library to the patch version. Applications that configure sandbox, plugin_types, and report_to only through static, trusted configuration are not vulnerable and require only the version upgrade. Applications that allow user-controlled input to influence these directives through per-controller override APIs should also audit and restrict those code paths to prevent untrusted values from being used.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 7.2.0
Fixed in 7.3.0secure_headers is vulnerable to Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in versions 0.0.1 - 7.2.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.