Ewe
CVE-2026-32881
MEDIUM
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Strict input allowlisting
|
| Impact | The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) indicates network-accessible exploitation with low complexity and no authentication required, but limited to integrity impact without confidentiality or availability concerns. The attack is straightforward for an attacker with basic HTTP protocol knowledge, as chunked transfer encoding is a standard HTTP feature. However, real-world impact depends on downstream middleware architecture: applications using ewe directly without a reverse proxy are less vulnerable than those relying on headers like X-Forwarded-For or X-Original-User for authentication or access control. The lack of confidentiality impact and moderate integrity scope suggest this is situationally critical rather than universally severe, but organizations using ewe with header-based authentication or session validation should treat this as high priority. The availability of patches (version 3.0.5) and detailed security advisory from GitHub Security Advisory (GHSA-9w88-79f8-m3vp) indicates vendor responsiveness. |
| Exploit ScenarioDerived | An attacker sends a crafted HTTP request with chunked transfer encoding to a Gleam application running vulnerable ewe, declaring sensitive headers (such as Authorization or X-Forwarded-User) in the Trailer field and appending the actual header values after the final chunk (0\r\n\r\n). The ewe server parses the trailer headers and merges them into req.headers, overwriting any values previously set by a reverse proxy or authentication middleware. If the application's downstream middleware reads these headers after ewe.read_body() is called, the attacker's forged header values are accepted as legitimate. For example, in a microservices architecture, the attacker could set X-User-ID to impersonate an admin user, bypass IP-based rate limiting by overwriting X-Forwarded-For, or forge X-Original-Auth to bypass authentication checks. No proof-of-concept code is publicly documented in the references, but exploitation requires only standard HTTP client libraries and basic protocol knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
ewe, a Gleam web server, contains an authentication bypass vulnerability in versions 0.6.0 through 3.0.4 that exploits improper handling of chunked transfer encoding trailer headers. An unauthenticated remote attacker can declare sensitive HTTP headers in the Trailer field and append them after the final chunk to overwrite legitimate values set by reverse proxies, enabling them to forge authentication credentials, hijack sessions, bypass rate limiting, or spoof proxy-trust headers. The vulnerability has been patched in version 3.0.5, and while not currently listed in CISA's KEV catalog, the CVSS score of 5.3 reflects medium severity with integrity impact.
RemediationAI
Upgrade ewe to version 3.0.5 or later immediately. For Gleam projects using ewe, update your dependency declaration and rebuild. The fixes committed at 07dcfd2135fc95f38c17a9d030de3d7efee1ee39 and 94ab6e7bf7293e987ae98b4daa51ea131c2671ba address the trailer header handling by implementing a more restrictive validation strategy. Until patching is possible, implement defense-in-depth measures: configure reverse proxies to validate and reject requests with suspicious trailer headers, use an allowlist of expected headers rather than relying on ewe's denylist, and avoid trusting authentication headers that can be set via HTTP request bodies or trailers. Monitor logs for requests with Trailer headers containing auth-related fields (Authorization, X-Forwarded-User, etc.). Refer to the official advisory at https://github.com/vshakitskiy/ewe/security/advisories/GHSA-9w88-79f8-m3vp for detailed guidance.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exploits improper implementation of HTTP/1.1 chunked transfer encoding as defined in RFC 7230, specifically the trailer headers mechanism. The ewe web server merges trailer fields declared in the Trailer header into the request.headers dictionary after body parsing, but maintains only a denylist of 9 blocked header names rather than a secure allowlist approach. The root cause is classified under CWE-183 (Permissive Allowlist Entry), where the incomplete filtering mechanism allows attackers to inject headers that bypass authentication and proxy-trust validation. The vulnerability affects Gleam applications using ewe as their HTTP server layer, where downstream middleware trusts header values read after the ewe.read_body() call without re-validating their origin or authenticity.
Know when Ewe gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
ewe is a Gleam web server. ewe is a Gleam web server. Versions 0.6.0 through 3.0.4 are vulnerable to authentication bypass or spoofed proxy-trust headers. Chunked transfer encoding trailer handling merges declared trailer fields into req.headers after body parsing, but the denylist only blocks 9 header names. A malicious client can exploit this by declaring these headers in the Trailer field and appending them after the final chunk, causing request.set_header to overwrite legitimate values (e.g., those set by a reverse proxy). This enables attackers to forge authentication credentials, hijack sessions, bypass IP-based rate limiting, or spoof proxy-trust headers in any downstream middleware that reads headers after ewe.read_body is called. This issue has been fixed in version 3.0.5.
Executive ViewAI
Organizations using ewe should be aware of moderate risk from CVE-2026-32881 rated CVSS 5.3. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB