CVE-2026-49871
Apache APISIX vulnerability analysis and mitigation

Overview

CVE-2026-49871 is a Cross-Site Request Forgery (CSRF) vulnerability in the cas-auth plugin of Apache APISIX under default configurations. A remote attacker who can direct a victim to an attacker-controlled webpage can cause the victim's browser to become authenticated as a different identity, with subsequent actions attributed to the attacker's chosen identity. The vulnerability affects Apache APISIX versions 3.0.0 through 3.16.0 and was publicly disclosed on June 18–19, 2026. It carries a CVSS v3.1 base score of 9.3 (Critical) and a CVSS v4.0 base score of 2.1 (Low), reflecting differing scoring methodologies (Apache Advisory, GitHub Advisory).

Technical details

The root cause is classified as CWE-352 (Cross-Site Request Forgery), where the cas-auth plugin in Apache APISIX fails to sufficiently verify that authentication requests were intentionally initiated by the legitimate user. Under default configurations, the CAS (Central Authentication Service) login flow does not implement adequate CSRF protections, allowing an attacker to craft a malicious webpage that triggers the victim's browser to complete an authentication handshake as an attacker-chosen identity. Exploitation requires no privileges and no special attack complexity, but does require user interaction (the victim visiting the attacker's page) and the presence of specific deployment conditions (Attack Requirements: Present in CVSS v4.0). No public proof-of-concept exploit code has been identified at this time (Apache Advisory, oss-security).

Impact

Successful exploitation allows an unauthenticated remote attacker to cause a victim's session to be authenticated under an attacker-controlled identity, effectively performing session injection or authentication bypass. Actions subsequently taken by the victim within the APISIX-protected application are attributed to the attacker's identity, enabling unauthorized access, privilege abuse, and potential data manipulation. The impact is primarily on integrity and confidentiality of downstream systems accessed through the gateway, with no direct availability impact (GitHub Advisory, Apache Advisory).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.23–0.26%, placing it in the 17th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. The vulnerability was reported by researcher "lokerxxx" and disclosed through Apache's security advisory process (oss-security, GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify targets running Apache APISIX versions 3.0.0–3.16.0 with the cas-auth plugin enabled, using network scanning or public exposure discovery tools.
  2. Craft malicious page: Create an attacker-controlled webpage that automatically initiates a CAS authentication request, embedding a forged callback or redirect that completes the CAS login flow with an attacker-chosen identity (e.g., via a hidden iframe or auto-submitting form targeting the APISIX CAS callback endpoint).
  3. Deliver to victim: Trick the victim into visiting the malicious page via phishing, social engineering, or a malicious link — the victim must have an active browser session or be capable of completing the CAS flow.
  4. Session injection: The victim's browser completes the forged CAS authentication handshake, causing APISIX to associate the victim's session with the attacker's chosen identity.
  5. Abuse attributed actions: Any subsequent requests made by the victim through the APISIX gateway are now attributed to the attacker's identity, enabling unauthorized access to backend services or data manipulation (oss-security, Apache Advisory).

Indicators of compromise

  • Logs: APISIX access logs showing CAS authentication callbacks (/apisix/plugin/cas-auth/callback or equivalent) originating from unexpected referrers or with mismatched session/identity parameters; repeated authentication events for the same session from different identities.
  • Network: Unusual cross-origin requests to the APISIX CAS callback endpoint; traffic from victim IPs to attacker-controlled domains immediately preceding authentication events.
  • Application Behavior: Users reporting actions they did not perform; audit logs showing actions attributed to one identity but initiated from a session associated with a different user's IP or browser fingerprint.

Mitigation and workarounds

Users should upgrade Apache APISIX to version 3.17.0, which contains the official fix for this vulnerability (Apache Advisory). For deployments unable to upgrade immediately, administrators should review and harden the cas-auth plugin configuration to add explicit CSRF token validation, configure SameSite=Strict or SameSite=Lax cookie attributes, and implement Content Security Policy (CSP) headers to restrict cross-origin requests. Additionally, network-level controls such as restricting access to the CAS callback endpoint to known trusted origins can reduce exposure.

Community reactions

The vulnerability was disclosed via the Apache security mailing list and oss-security on June 18–19, 2026, with credit given to reporter "lokerxxx" (oss-security). Social media activity was limited, with brief mentions on Bluesky and Mastodon/infosec.exchange by automated vulnerability tracking accounts. No significant vendor statements beyond the official advisory or notable independent researcher commentary have been identified.

Additional resources


SourceThis report was generated using AI

Related Apache APISIX vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-49230MEDIUM6.3
  • Apache APISIX logoApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesJun 19, 2026
CVE-2026-49872MEDIUM5.3
  • Apache APISIX logoApache APISIX
  • apache-apisix
NoYesJun 19, 2026
CVE-2026-49231LOW2.3
  • Apache APISIX logoApache APISIX
  • apache-apisix
NoYesJun 19, 2026
CVE-2026-49871LOW2.1
  • Apache APISIX logoApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesJun 19, 2026
CVE-2026-48895LOW2.1
  • Apache APISIX logoApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesJun 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management