A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31908

CVE-2026-31908: Apache APISIX Header Injection Vulnerability

CVE-2026-31908 is a header injection vulnerability in Apache APISIX that allows attackers to inject malicious headers through the forward-auth plugin. This article covers technical details, affected versions, and mitigation.

Updated: May 14, 2026

CVE-2026-31908 Overview

CVE-2026-31908 is a header injection vulnerability in Apache APISIX, an open-source API gateway. The flaw resides in the forward-auth plugin, where specific configurations allow attackers to inject malicious HTTP headers into upstream requests. The vulnerability affects Apache APISIX versions 2.12.0 through 3.15.0 and is fixed in version 3.16.0. Attackers can exploit the issue over the network without authentication or user interaction, making it suitable for remote exploitation against exposed API gateways. The vulnerability is categorized under [CWE-75: Failure to Sanitize Special Elements into a Different Plane].

Critical Impact

Unauthenticated attackers can inject arbitrary headers through the forward-auth plugin, enabling authentication bypass, request smuggling, and impersonation against upstream services.

Affected Products

  • Apache APISIX 2.12.0 through 3.15.0
  • Deployments using the forward-auth plugin with susceptible configurations
  • API gateway instances exposed to untrusted network traffic

Discovery Timeline

  • 2026-04-14 - CVE-2026-31908 published to NVD
  • 2026-04-14 - Apache project published advisory to the dev mailing list
  • 2026-04-17 - Last updated in NVD database

Technical Details for CVE-2026-31908

Vulnerability Analysis

Apache APISIX provides a forward-auth plugin that delegates authentication decisions to an external service. The plugin forwards client requests to an authentication endpoint and propagates response headers back to the upstream service. CVE-2026-31908 stems from insufficient sanitization of headers returned by the authentication service or supplied through request input. Attackers can manipulate the plugin configuration paths to inject arbitrary headers into the request flow toward the upstream. Because upstream services typically trust headers set by the gateway, this injection undermines downstream authorization and identity context.

Root Cause

The root cause is improper neutralization of special elements when constructing HTTP headers within the forward-auth plugin. The plugin fails to validate or filter header names and values before passing them to the upstream request, violating header plane separation as described in CWE-75. Configurations that broaden which headers are forwarded amplify the issue by accepting attacker-controlled values.

Attack Vector

An unauthenticated remote attacker sends crafted HTTP requests to an APISIX route that uses the forward-auth plugin. By controlling input that influences forwarded headers, the attacker injects headers such as X-User, Authorization, or arbitrary custom headers consumed by upstream applications. Upstream services then act on those headers, allowing identity spoofing or privilege escalation depending on backend trust assumptions. The attack requires no privileges and no user interaction, and exploitation traffic is indistinguishable from legitimate API calls without targeted detection rules.

No public proof-of-concept code is currently available. Refer to the Apache Mailing List Discussion and the Openwall OSS Security Update for technical details.

Detection Methods for CVE-2026-31908

Indicators of Compromise

  • Unexpected or duplicated HTTP headers in upstream access logs originating from APISIX nodes
  • Requests to routes configured with the forward-auth plugin containing CRLF sequences or unusual header names in client-supplied fields
  • Upstream authentication bypass events where identity headers (e.g., X-User, X-Forwarded-User) carry attacker-controlled values

Detection Strategies

  • Inventory all APISIX routes that enable the forward-auth plugin and audit their header allow-lists against version 3.16.0 defaults
  • Compare headers received by upstream services to a baseline of headers expected from the gateway, flagging deviations
  • Inspect APISIX access logs for anomalous header patterns associated with the auth flow

Monitoring Recommendations

  • Forward APISIX and upstream service logs to a centralized analytics platform for correlation across the request path
  • Alert on authentication or authorization decisions made using headers that should be set exclusively by the gateway
  • Monitor configuration changes to the forward-auth plugin and review them through change control

How to Mitigate CVE-2026-31908

Immediate Actions Required

  • Upgrade Apache APISIX to version 3.16.0 or later on all gateway nodes
  • Audit every route using the forward-auth plugin and restrict the request_headers, upstream_headers, and client_headers allow-lists to the minimum required
  • Rotate any credentials or session tokens that may have been exposed through manipulated header flows

Patch Information

Apache has released Apache APISIX 3.16.0, which fixes CVE-2026-31908. The advisory is published in the Apache Mailing List Discussion and the Openwall OSS Security Update. Operators running versions 2.12.0 through 3.15.0 should upgrade without delay.

Workarounds

  • Disable the forward-auth plugin on routes that do not require external authentication delegation
  • Replace permissive header forwarding configurations with explicit allow-lists of header names known to be safe
  • Place a web application firewall in front of APISIX to strip or normalize client-supplied headers consumed by the plugin
bash
# Configuration example: restrict forward-auth header propagation
# Apply on each route using the plugin until upgrade to 3.16.0 is complete
plugins:
  forward-auth:
    uri: "https://auth.internal.example.com/verify"
    request_headers:
      - "Authorization"
    upstream_headers:
      - "X-User-ID"
    client_headers: []
    keep_request_body: false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechApache Apisix

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-75
  • Technical References
  • Openwall OSS Security Update
  • Vendor Resources
  • Apache Mailing List Discussion
  • Related CVEs
  • CVE-2026-31924: Apache APISIX Information Disclosure Flaw

  • CVE-2026-31923: Apache APISIX Information Disclosure Flaw

  • CVE-2022-24112: Apache Apisix Auth Bypass Vulnerability

  • CVE-2022-25757: Apache APISIX Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English