{"id":"CVE-2026-34715","published":"2026-04-02T17:57:00Z","modified":"2026-04-03T16:00:41Z","title":"ewe Has Improper Neutralization of CRLF Sequences in HTTP Headers (HTTP Request/Response Splitting)","vendor":"vshakitskiy","product":"ewe","tier":"tail","description":{"text":"ewe is a Gleam web server. Prior to version 3.0.6, the encode_headers function in src/ewe/internal/encoder.gleam directly interpolates response header keys and values into raw HTTP bytes without validating or stripping CRLF (\\r\\n) sequences. An application that passes user-controlled data into response headers (e.g., setting a Location redirect header from a request parameter) allows an attacker to inject arbitrary HTTP response content, leading to response splitting, cache poisoning, and possible cross-site scripting. Notably, ewe does validate CRLF in incoming request headers via validate_field_value() in the HTTP/1.1 parser — but provides no equivalent protection for outgoing response headers in the encoder. This issue has been patched in version 3.0.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00348,"percentile":0.29129,"provenance":"source"},"cwes":[{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"}],"references":[{"url":"https://github.com/vshakitskiy/ewe/security/advisories/GHSA-x2w3-23jr-hrpf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vshakitskiy/ewe/commit/ce4ff214d32626a10fda9398dc94a2d720e17446","tags":["x_refsource_MISC"]},{"url":"https://github.com/vshakitskiy/ewe/releases/tag/v3.0.6","tags":["x_refsource_MISC"]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":5.83},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vshakitskiy","affectedVersions":[{"vendor":"vshakitskiy","product":"ewe","versions":["< 3.0.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-03T16:00:11.591060Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"ewe","vulnerableRanges":["<3.0.6"],"patched":["3.0.6"],"from":["GHSA-x2w3-23jr-hrpf"],"provenance":"source"}],"summary":{"text":"The ewe Gleam web server, prior to version 3.0.6, has a flaw in its encode_headers function (src/ewe/internal/encoder.gleam) where response header keys and values are written into raw HTTP output without stripping CRLF sequences. An attacker can inject arbitrary HTTP response content by exploiting this when an application places user-controlled data into response headers, such as a redirect Location header, with no authentication required and no user interaction described beyond the application passing that data through.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:05Z"},"euvd":{"id":"EUVD-2026-18468","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vshakitskiy-ewe-cve-2026-32881","parents":[{"from":"CVE-2026-32881","to":"CVE-2026-34715","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:ewe","fromFixed":"3.0.5","toFixed":"3.0.6","daysApart":13},{"kind":"same-code","provenance":"machine","files":["src/ewe/internal/http1.gleam"],"commits":["https://github.com/vshakitskiy/ewe/commit/07dcfd2135fc95f38c17a9d030de3d7efee1ee39","https://github.com/vshakitskiy/ewe/commit/94ab6e7bf7293e987ae98b4daa51ea131c2671ba","https://github.com/vshakitskiy/ewe/commit/ce4ff214d32626a10fda9398dc94a2d720e17446"],"basis":"shared function","functions":["handle_trailers"]},{"kind":"similar","provenance":"machine","score":0.37,"basis":"same product + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-32873","published":"2026-03-20","fixed":"3.0.5","kev":false},{"cve":"CVE-2026-32881","published":"2026-03-20","fixed":"3.0.5","kev":false},{"cve":"CVE-2026-34715","published":"2026-04-02","fixed":"3.0.6","kev":false}],"package":"Hex:ewe"}}