{"id":"CVE-2020-5216","url":"https://www.cyber-defence.io/tools/cve/CVE-2020-5216","generatedAt":"2026-10-27T21:19:22.896Z","title":"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.","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.","published":"2020-01-23T03:15:11.000Z","lastModified":"2026-06-17T03:21:03.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":5.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"},"cwe":["CWE-113","CWE-74"],"affected":["twitter/secure headers"],"epss":{"score":0.01209,"percentile":0.68189,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (1.21%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg","tags":["Exploit","Mitigation","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg","tags":["Exploit","Mitigation","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-5216","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}