{"api_version":"1","generated_at":"2026-04-23T02:35:37+00:00","cve":"CVE-2020-5216","urls":{"html":"https://cve.report/CVE-2020-5216","api":"https://cve.report/api/cve/CVE-2020-5216.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-5216","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-5216"},"summary":{"title":"CVE-2020-5216","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2020-01-23 03:15:00","updated_at":"2020-02-18 14:58:00"},"problem_types":["CWE-74"],"metrics":[],"references":[{"url":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg","name":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg","refsource":"CONFIRM","tags":["Exploit","Mitigation","Third Party Advisory"],"title":"Limited header injection when using dynamic overrides with user input · Advisory · github/secure_headers · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0","name":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0","refsource":"MISC","tags":["Patch"],"title":"Merge pull request from GHSA-w978-rmpf-qmwg · github/secure_headers@3016957 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-5216","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5216","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"5216","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"twitter","cpe5":"secure_headers","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"5216","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"twitter","cpe5":"secure_headers","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-5216","qid":"238742","title":"Red Hat Update for Satellite 6.8 release (RHSA-2020:4366)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2020-5216","STATE":"PUBLIC","TITLE":"Limited header injection when using dynamic overrides with user input in RubyGems secure_headers"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"secure_headers","version":{"version_data":[{"version_value":"< 3.9.0"},{"version_value":">= 5.0.0, < 5.2.0"},{"version_value":">= 6.0.0, < 6.3.0"}]}}]},"vendor_name":"Twitter"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg","refsource":"CONFIRM","url":"https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg"},{"name":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0","refsource":"MISC","url":"https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0"}]},"source":{"advisory":"GHSA-w978-rmpf-qmwg","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2020-01-23 03:15:00","lastModifiedDate":"2020-02-18 14:58:00","problem_types":["CWE-74"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.8,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*","versionEndExcluding":"3.9.0","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.2.0","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*","versionStartIncluding":"6.0.0","versionEndExcluding":"6.3.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"5216","Ordinal":"165430","Title":"CVE-2020-5216","CVE":"CVE-2020-5216","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"5216","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"5216","Ordinal":"2","NoteData":"2020-01-22","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"5216","Ordinal":"3","NoteData":"2020-01-22","Type":"Other","Title":"Modified"}]}}}