{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-41084","id":"CVE-2021-41084","title":"Response Splitting from unsanitized headers in http4s","description":"http4s is an open source scala interface for HTTP. In affected versions http4s is vulnerable to response-splitting or request-splitting attacks when untrusted user input is used to create any of the following fields: Header names (`Header.name`å), Header values (`Header.value`), Status reason phrases (`Status.reason`), URI paths (`Uri.Path`), URI authority registered names (`URI.RegName`) (through","descriptionLong":"http4s is an open source scala interface for HTTP. In affected versions http4s is vulnerable to response-splitting or request-splitting attacks when untrusted user input is used to create any of the following fields: Header names (`Header.name`å), Header values (`Header.value`), Status reason phrases (`Status.reason`), URI paths (`Uri.Path`), URI authority registered names (`URI.RegName`) (through 0.21). This issue has been resolved in versions 0.21.30, 0.22.5, 0.23.4, and 1.0.0-M27 perform the following. As a matter of practice http4s services and client applications should sanitize any user input in the aforementioned fields before returning a request or response to the backend. The carriage return, newline, and null characters are the most threatening.","published":"2021-09-21T17:20:14.000Z","updated":"2026-10-20T10:54:57.095304966Z","reserved":"2021-09-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["http4s"],"affectedProducts":[{"vendor":"http4s","product":"http4s","defaultStatus":null,"versions":[{"status":"affected","version":"<= 0.21.28"},{"status":"affected","version":">= 0.22.0, < 0.22.5"},{"status":"affected","version":">= 0.23.0, < 0.23.4"},{"status":"affected","version":">= 1.0.0-M1, < 1.0.0-M27"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.http4s:http4s-client_2.12","purl":"pkg:maven/org.http4s/http4s-client_2.12","ranges":["<0.21.29",">=0.22.0 <0.22.5",">=0.23.0 <0.23.4"],"fixed":["0.21.29","0.22.5","0.23.4"],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","ranges":["<0.21.29",">=0.22.0 <0.22.5",">=0.23.0 <0.23.4"],"fixed":["0.21.29","0.22.5","0.23.4"],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","ranges":["<0.21.29",">=0.22.0 <0.22.5",">=0.23.0 <0.23.4"],"fixed":["0.21.29","0.22.5","0.23.4"],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-server_2.10","purl":"pkg:maven/org.http4s/http4s-server_2.10","ranges":["<=0.21.28"],"fixed":[],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-server_2.11","purl":"pkg:maven/org.http4s/http4s-server_2.11","ranges":["<=0.21.28"],"fixed":[],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","ranges":["<0.21.29",">=0.22.0 <0.22.5",">=0.23.0 <0.23.4"],"fixed":["0.21.29","0.22.5","0.23.4"],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-server_2.13","purl":"pkg:maven/org.http4s/http4s-server_2.13","ranges":["<0.21.29",">=0.22.0 <0.22.5",">=0.23.0 <0.23.4"],"fixed":["0.21.29","0.22.5","0.23.4"],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-server_2.13.0-M5","purl":"pkg:maven/org.http4s/http4s-server_2.13.0-M5","ranges":["<=0.21.28"],"fixed":[],"advisory":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","name":"org.http4s:http4s-server_3","purl":"pkg:maven/org.http4s/http4s-server_3","ranges":[">=0.22.0 <0.22.5",">=0.23.0 <0.23.4"],"fixed":["0.22.5","0.23.4"],"advisory":"GHSA-5vcm-3xc3-w7x3"}],"cwes":["CWE-918","CWE-74"],"aliases":["GHSA-5vcm-3xc3-w7x3"],"references":[{"url":"https://github.com/http4s/http4s/security/advisories/GHSA-5vcm-3xc3-w7x3","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#fields.values","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://owasp.org/www-community/attacks/HTTP_Response_Splitting","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41084","tags":["advisory"]},{"url":"https://github.com/http4s/http4s","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01235,"epssPercentile":0.69681,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-41084","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41084","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-41084","ok":true,"note":"9 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5vcm-3xc3-w7x3","ok":true,"note":"GHSA-5vcm-3xc3-w7x3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-41084","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}