CVE-2026-47341: Apache APISIX Authentication Bypass via Token Replay
Apache APISIX versions 3.11.0 through 3.16.0 contain an authentication bypass vulnerability in the hmac-auth plugin. Under certain configurations, an attacker can capture and replay authentication tokens indefinitely, circumventing the token expiry mechanism designed to limit credential lifetime. This allows an attacker to maintain unauthorized access to protected APIs without re-authenticating, as long as they possess a valid token.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weaknesses (CWE)
- CWE-294
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-19 / 2026-06-23
NVD description (verbatim)
Authentication Bypass by Capture-replay vulnerability in Apache APISIX. Attacker can benefit from certain configurations in hmac-auth to re-use a token forever, bypassing expiry. This issue affects Apache APISIX: from 3.11.0 through 3.16.0. Users are recommended to upgrade to version 3.17.0, which fixes the issue.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-47341 is an authentication bypass vulnerability stemming from improper capture-replay protection in Apache APISIX's hmac-auth authentication module. The vulnerability arises from a configuration weakness that fails to adequately validate token freshness or implement replay detection. An attacker who obtains a valid HMAC-authenticated token can reuse it indefinitely despite configured expiry times. The flaw affects APISIX versions 3.11.0 through 3.16.0 and is resolved in version 3.17.0. The underlying weakness is classified as CWE-294 (Authentication Using a Known Password), indicating reliance on credential reuse without sufficient anti-replay measures.
Business impact
This vulnerability poses a moderate but persistent risk to API security posture. Organizations using APISIX with hmac-auth face the risk of token-based credential theft leading to sustained unauthorized API access. Unlike vulnerabilities requiring continuous exploitation, a single compromised token enables indefinite abuse, making this particularly dangerous in scenarios where tokens are exposed through logs, network captures, or insider access. The impact is limited to confidentiality and integrity of API-protected resources; availability is not directly threatened. For platforms relying on hmac-auth for rate limiting, usage tracking, or access control, token replay can degrade enforcement of these controls.
Affected systems
Apache APISIX deployments running version 3.11.0 through 3.16.0 are affected. The vulnerability manifests only when the hmac-auth plugin is active and configured in a manner that does not supplement token validation with anti-replay measures. Organizations using APISIX for API gateway functions—particularly those managing multi-tenant or sensitive API ecosystems—should prioritize inventory of deployed versions. Versions prior to 3.11.0 and version 3.17.0 and later are not affected.
Exploitability
Exploitability is straightforward once a valid token is obtained. The attack requires network access to the APISIX instance (CVSS AV:N) and no user interaction (UI:N). No special privileges are required on the attacker's end (PR:N). The attack complexity is low (AC:L), meaning standard tools and techniques suffice to perform token capture and replay. An attacker may obtain tokens through network interception, accidental exposure in logs, or social engineering. The primary barrier to exploitation is token acquisition, not the replay mechanism itself.
Remediation
Upgrade Apache APISIX to version 3.17.0 or later, which implements proper anti-replay protections in the hmac-auth module. Organizations unable to patch immediately should consider interim measures: restrict token lifetime to the shortest operationally feasible duration, monitor for suspicious token reuse patterns (multiple requests with identical timestamps or from unusual sources), and implement additional authentication layers (IP allowlisting, mutual TLS) if the architecture permits. Review hmac-auth plugin configurations to ensure they do not disable or weaken expiry validation.
Patch guidance
Upgrade to Apache APISIX version 3.17.0 or later. The patch addresses the root cause of the capture-replay vulnerability by strengthening token validation logic and enforcing replay detection. Before upgrading, verify compatibility with your installed plugins and test in a non-production environment, as major version updates may introduce configuration changes. Consult the Apache APISIX release notes for version 3.17.0 to confirm the fix and any breaking changes. Coordinate the upgrade during a maintenance window to minimize API availability risk.
Detection guidance
Monitor for indicators of token replay: (1) Identical HMAC-Auth tokens appearing in API requests from different source IPs or within an unusually short timeframe; (2) Repeated successful authentication using the same token value after its expected expiry window; (3) Requests with inconsistent user agents, geographic origins, or request patterns bearing the same authentication credentials; (4) Anomalous spikes in API usage by a single authenticated user or token. Implement centralized logging of authentication events with token hashing for privacy, and correlate logs across your APISIX fleet to detect distributed replay attempts. API gateway access logs and APISIX debug logs should be retained for post-incident analysis.
Why prioritize this
Although the CVSS score is moderate (6.5), this vulnerability merits prompt attention because token replay is persistent—a single compromised token enables ongoing unauthorized access without further attacker action. Unlike transient vulnerabilities requiring repeated exploitation, this flaw can remain exploited indefinitely if unpatched. The ease of exploitation (low complexity, no authentication required) and the ubiquity of API gateways in modern architectures compound the risk. For organizations handling sensitive API workloads, elevation to high priority is justified despite the numerical score.
Risk score, explained
The CVSS v3.1 score of 6.5 (MEDIUM) reflects the vulnerability's network-accessible attack vector, low complexity, and lack of required privileges or user interaction. However, the impact is limited to partial confidentiality and integrity loss (C:L, I:L) with no availability impact (A:N). This places it in the moderate range. The score does not fully capture the persistence of the threat once exploitation occurs; a single token theft can result in sustained abuse. Organizations should apply context-specific risk assessment: high sensitivity APIs or data warrant elevation above the baseline score, while lower-risk APIs may accept delayed patching if mitigations are in place.
Frequently asked questions
Can an attacker create new tokens or only replay existing ones?
CVE-2026-47341 is strictly a replay vulnerability. The attacker cannot forge new tokens; they must capture an existing valid token and reuse it. The weakness is in the validation logic that should reject expired or replayed tokens, not in token generation. An attacker must therefore first obtain a legitimate token through network access, logs, or other means.
Does this vulnerability affect deployments that do not use the hmac-auth plugin?
No. The vulnerability is specific to Apache APISIX's hmac-auth authentication module. Deployments using alternative authentication plugins (e.g., oauth2, ldap, jwt) are not affected by this particular flaw, though they should be evaluated independently for their own security posture.
If we upgrade to 3.17.0, will our hmac-auth configurations require changes?
Consult the Apache APISIX 3.17.0 release notes to confirm any configuration updates needed. In most cases, patching is transparent and existing configurations will work unchanged. However, best practice is to test the upgrade in a staging environment first and review the patch details for any breaking changes before production deployment.
Can we rely on short token expiry times as a temporary mitigation?
Shortening token lifetime reduces the window of vulnerability but does not eliminate it. An attacker can still replay a token captured minutes or hours before its expiry. Short lifetimes are a helpful interim measure but should not delay patching. Combine short expiry with other controls such as IP allowlisting or request rate limiting to raise the bar for attackers.
This analysis is provided for informational purposes and represents SEC.co's understanding of CVE-2026-47341 based on available source data as of the publication date. Readers are responsible for validating patch availability, compatibility, and applicability within their specific environments. Consult official Apache APISIX security advisories and vendor documentation for definitive guidance. This document does not constitute professional security advice; engage qualified security professionals for risk assessment tailored to your organization's threat model and asset criticality. Source: NVD (public-domain), retrieved 2026-07-27. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-46538MEDIUMMicrosoft UFO Cross-Device Task Result Injection (CVSS 5.9)
- CVE-2026-49322MEDIUMPIN Recovery Vulnerability in Indian Motorcycle Scout Bobber + Tech WCM
- CVE-2026-41000LOWSpring Web Services Replay Cache Configuration Bypass
- CVE-2026-9095HIGHCasdoor SAML Replay Attack Allows Authentication Bypass
- CVE-2025-48977MEDIUMApache Ignite REST API Path Traversal – Authenticated File Read Vulnerability
- CVE-2026-25688MEDIUMApache Answer XSS Vulnerability in AI Response Rendering
- CVE-2026-25699MEDIUMApache Answer Authorization Bypass Exposes Private Content
- CVE-2026-29170MEDIUMApache HTTP Server FTP Proxy XSS Vulnerability