CVE-2020-52162
In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.9.0, 5.2.0, and 6.3.0. If user-supplied input was passed into append/override_content_security_policy_directives, a newline could be injected leading to limited header injection. Upon seeing a newline in the header, rails will silently create a new Content-Security-Policy header with the remaining value of the original string.
It will continue to create new headers for each newline. This has been fixed in 6.3.0, 5.2.0, and 3.9.0.
- Public exploit or PoC is available
Exploitation evidence
1 of 7 sourcesExploitation momentum
8 days of EPSSCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N- 23 Jan 2020Published to NVD
- 17 Jun 2026Last modified
Public Exploits & PoCs
2ATT&CK techniques
1Techniques this CVE enables. Pills with a solid outline are high confidence - named directly in ATT&CK or Nuclei, or human-curated by CTID; the rest are inferred from the weakness type using MITRE's CVE Mapping Methodology and the CWE → CAPEC chain. Broad, generic-weakness guesses are filtered out. A small N× marks a technique that N independent sources agree on.
▤ Build a SIEM detection for these techniquesCAPEC attack patterns
12Attack patterns this CVE enables - the bridge from weakness to ATT&CK technique.