{"id":"CVE-2020-5216","details":"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.","aliases":["GHSA-w978-rmpf-qmwg"],"modified":"2026-04-10T04:27:35.876430Z","published":"2020-01-23T03:15:10.683Z","related":["GHSA-w978-rmpf-qmwg"],"references":[{"type":"FIX","url":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0"},{"type":"EVIDENCE","url":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/github/secure_headers","events":[{"introduced":"0"},{"fixed":"f06956d138f906c8fe32a9a706d36697168e0a55"},{"introduced":"0"},{"fixed":"14d72d78aa2a9593f601543d19057b38f78825f3"},{"introduced":"eb9af0be9ec9447ddfffd89f4d2ca8ccd350bbd3"},{"fixed":"722a69051acce9d26ab0d0648fe10fd2ff77baa8"},{"fixed":"301695706f6a70517c2a90c6ef9b32178440a2d0"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.9.0"},{"introduced":"5.0.0"},{"fixed":"5.2.0"},{"introduced":"6.0.0"},{"fixed":"6.3.0"}]}}],"versions":["2.0.0","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.3.0","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","v.2.0.0.pre2","v0.4.2","v0.4.3","v1.1.1","v1.3.2","v1.3.3","v1.3.4","v2.0.0.pre","v2.0.1","v2.0.2","v2.1.0","v3.0.0","v3.0.0.rc1","v3.0.1","v3.0.2","v3.0.3","v3.1.0","v3.1.1","v3.1.2","v3.2.0","v3.3.0","v3.3.1","v3.3.2","v3.4.0","v3.4.1","v3.5.0","v3.5.0.pre","v3.5.1","v3.6.0","v3.6.1","v3.6.3","v3.6.4","v3.6.5","v3.6.7","v3.7.0","v3.7.1","v3.7.2","v3.7.3","v3.7.4","v3.8.0","v4.0.0","v4.0.0.alpha01","v4.0.0.alpha02","v4.0.0.alpha03","v4.0.0.alpha04","v4.0.1","v5.0.0.alpha01","v5.0.1","v5.0.2","v5.0.3","v5.0.4","v5.0.5","v5.1.0","v6.0.0.alpha01","v6.0.0.alpha02","v6.0.0.alpha03","v6.1.0","v6.1.1","v6.1.2","v6.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5216.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"}]}