
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31908 is a header injection vulnerability in the Apache APISIX forward-auth plugin that allows unauthenticated remote attackers to inject malicious headers into proxied requests. It affects Apache APISIX versions 2.12.0 through 3.15.0, and was publicly disclosed on April 14, 2026, with a fix available in version 3.16.0. The vulnerability was reported by SeungMyung Lee and assigned a CVSS v3.1 base score of 9.1 (Critical) (GitHub Advisory, OSS-Security).
The root cause is classified as CWE-75 (Failure to Sanitize Special Elements into a Different Plane — Special Element Injection), where the forward-auth plugin fails to adequately sanitize user-controlled input before incorporating it into HTTP headers forwarded to upstream authentication services. An attacker can exploit certain plugin configurations to inject CRLF sequences or other special characters into headers, effectively manipulating the request seen by the authentication backend. No privileges or user interaction are required; the attack is conducted entirely over the network with low complexity. A public Python-based PoC exploit (CVE-2026-31908.py) demonstrates authentication bypass and unauthorized access to protected resources via CRLF injection (GitHub Advisory, PoC Exploit).
Successful exploitation allows an unauthenticated attacker to inject arbitrary HTTP headers into requests processed by the forward-auth plugin, enabling authentication bypass and unauthorized access to resources protected by the authentication service. The vulnerability carries high confidentiality and high integrity impact — attackers can access sensitive data and tamper with request data — while availability is not directly affected. In environments where the forward-auth plugin gates access to sensitive APIs or microservices, exploitation could lead to significant data exposure and security control circumvention (GitHub Advisory, OSS-Security).
A public proof-of-concept exploit is available on GitHub (MehranTurk/CVE-2026-31908), consisting of a runnable Python script that performs CRLF-based header injection to achieve authentication bypass against live Apache APISIX instances. The exploit was added to tracking platforms including Sploitus in late April 2026. As of the latest available data, there is no confirmed evidence of in-the-wild exploitation, and no threat actor attribution has been reported. The EPSS score is approximately 0.032%, indicating a currently low but non-negligible probability of exploitation in the near term. The vulnerability is not listed in the CISA KEV catalog at this time (PoC Exploit, GitHub Advisory).
\r\n) or other special characters within header values or parameters that the forward-auth plugin will forward upstream, injecting additional headers such as X-Authenticated-User: admin.%0d%0a, \r\n) or unexpected header injection patterns in request parameters or header values; unexpected outbound connections from APISIX to authentication services with anomalous header content.X-Authenticated-User, X-Forwarded-For with injected values) not originating from legitimate clients.The primary remediation is to upgrade Apache APISIX to version 3.16.0, which contains the fix for this vulnerability (OSS-Security, GitHub Advisory). As an interim measure, administrators should review and restrict the configuration of the forward-auth plugin to minimize which headers are forwarded to authentication services, and implement additional header validation controls at the authentication backend. Deployments that do not use the forward-auth plugin are not affected by this specific issue.
The vulnerability was disclosed via the Apache security mailing list and the OSS-Security list on April 14, 2026, with credit given to reporter SeungMyung Lee (OSS-Security). It was noted in PoC-tracking digests such as the "PoC Week" roundup for April 27, 2026, highlighting the availability of a working exploit script. Social media posts on Bluesky flagged the CVE shortly after disclosure. No major vendor statements beyond the Apache advisory or significant analyst commentary have been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."