SecurityContext

CVE-2020-5216: Secure Headers - HTTP Response Splitting

  • Cve: CVE-2020-5216
  • Name: Secure Headers - HTTP Response Splitting
  • Description: 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.
  • Impact: Attackers can inject multiple headers or manipulate Content-Security-Policy headers, potentially leading to security policy bypass or header injection attacks.
  • Remediation: Update to version 6.3.0, 5.2.0, or 3.9.0 or later.
  • Vulnerability type: crlf_injection
  • Requirement type: user_interaction
  • Requirements: Attacker needs to pass malicious input into directives
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
  • Epss score: 0.01209
  • Epss percentile: 0.69171
  • Assignee: [email protected]
  • Published at: 2020-01-23T03:15:10Z
  • Age in days: 2497
  • Modified at: 2026-06-17T03:21:02Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-5216
  • Nvd status: modified
  • Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-113Improper Neutralization of CRLF Sequences in HTTP Headers
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component

Public exploits

UrlSourceAdded date
https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwgnvd2020-01-23

References

UrlSourceTags
https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0nvdPatch
https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwgnvdExploit, Mitigation, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
twitter:secure_headers>= 6.0.0, < 6.3.0; >= 5.0.0, < 5.2.0; < 3.9.0nonvd/v1/products/twitter/secure_headers

Projects

RepositoryLink kindsIndexedUrl
twitter/secure_headerscommit, package, security_advisoryyes/v1/repositories/twitter/secure_headers

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2020-01-23
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts