Apache APISIX 3.20.0 fixes seven gateway trust-boundary flaws
Apache published APISIX 3.20.0 on November 11, and the individual security advisories followed on November 13. The release fixes seven CVEs, spanning route matching, identity headers, authentication fallback, Keycloak authorization, mTLS exemptions, and the gateway's MCP integrations. The CVSS 4.0 scores range from 2.3 to 7.8. Apache recommends 3.20.0 for each affected branch.
Seven CVEs in one release is not unusual for an API gateway. A gateway is a large, plugin-heavy piece of software that sits on the trust boundary between the internet and internal services. It parses requests, rewrites paths, authenticates callers, authorizes actions, and forwards traffic. Every one of those steps is a place where a small semantic difference can become a security bug. What makes this release worth examining is not the count. It is the pattern: most of the flaws involve a mismatch between what the gateway believes it is enforcing and what the upstream believes it is receiving.
That mismatch is the essence of a trust-boundary bug. The gateway authenticates a request and adds an identity header. The upstream trusts the header. If the gateway can be tricked into adding the header for an unauthenticated request, or into forwarding a request to an upstream that interprets the path differently, the authentication is bypassed without breaking any cryptography. The lock is intact; the door is simply in a different place than the guard thinks.
A gateway is a trust boundary
An API gateway is often described as a reverse proxy with plugins. That description is technically accurate and strategically misleading. The gateway is the point where external requests become internal requests. It is where TLS terminates, where authentication happens, where authorization policies are applied, where rate limits are enforced, and where routes are selected. If the gateway makes a mistake, the upstream may never know.
The most important distinction in gateway security is between authentication and authorization. Authentication answers "who is calling?" Authorization answers "is this caller allowed to do this?" A gateway can authenticate a request correctly and still authorize it incorrectly. It can also authorize a request against one route and forward it to a different upstream than the one the policy was written for. Both are bypasses, even though neither involves a stolen credential.
Path normalization is a classic source of this problem. Different components interpret the same URL differently. A gateway may decode percent-encoded characters, collapse dot segments, or normalize slashes before matching a route. An upstream may do its own normalization, or may not normalize at all. If the two disagree, a request can match an unauthenticated route at the gateway and reach a protected handler at the upstream. The gateway's route table says one thing; the upstream's router says another. The attacker only needs to find the discrepancy.
Identity headers are another classic source. A gateway that authenticates a user may add a header such as X-User-Id or X-Forwarded-User before forwarding the request. The upstream trusts that header because it assumes the gateway stripped any client-supplied version. If the gateway fails to strip it, or if a fallback path adds it under the wrong conditions, the upstream can be convinced that an unauthenticated request came from a trusted user. The bug is not in the upstream's trust model; it is in the gateway's enforcement of that model.
APISIX's seven CVEs are variations on these themes. Some involve route matching, some involve fallback authentication, some involve the interaction between a plugin and an upstream that trusts the plugin's headers. The details differ, but the lesson is the same: a gateway's security depends on the consistency of its interpretation across every component in the path.
The seven flaws
The highest-scored flaw is CVE-2026-124679, a 7.8 high-severity issue affecting APISIX 3.18.0 through 3.19.0. It has two trigger conditions. In the first, jwe-decrypt uses strict: false with a forward_header that is distinct from the token header. In the second, forward-auth uses allow_degradation: true while the authorization service is unavailable. Both conditions involve a deliberate weakening of the authentication path, and both can allow a request to be treated as authenticated when it should not be.
The second high-severity flaw is CVE-2026-124680, a 7.0 issue affecting 0.9 through 3.19.0. An unauthenticated route and an authenticated route share an upstream, and that upstream retains encoded dot segments. This is the path-normalization problem in its purest form. The gateway matches the request against the unauthenticated route, but the upstream decodes the path and reaches a handler that the gateway believed was protected. The flaw affects a very wide range of versions, which is a reminder that path handling is easy to get wrong and hard to fix without breaking compatibility.
CVE-2026-124666 is a 6.4 medium-severity issue affecting 3.8.0 through 3.19.0. It involves multi-auth falling back from wolf-rbac while an upstream trusts Wolf identity headers. The fallback is the trigger: when the primary authentication method is unavailable, the gateway falls back to another method, and the fallback path does not preserve the identity guarantees that the upstream expects. The upstream sees a Wolf header and trusts it, even though the request did not go through the Wolf authentication path.
CVE-2026-124716 is a 6.4 medium-severity issue affecting 1.4.0 through 3.19.0. It involves authz-keycloak requiring several permissions or scopes, but a user having only one. The authorization check is supposed to require all of the configured permissions; if it accepts a user with only one, the policy is weaker than the operator intended. This is an authorization bug rather than an authentication bug, and it is easy to miss because the request is authenticated and the plugin is configured. The policy looks correct on paper; the enforcement is not.
CVE-2026-124719 is a 2.3 low-severity issue affecting 3.19.0. It involves openapi-to-mcp route identity headers overlapping headers declared in the OpenAPI document. The overlap can cause a header to be interpreted differently by the gateway and the generated MCP tool. The low score reflects the narrow conditions, but the pattern is important: when a gateway generates an interface from a specification, the specification and the gateway must agree on which headers are reserved.
CVE-2026-124723 is a 6.3 medium-severity issue affecting 3.18.0 through 3.19.0. It requires match_uri_encoded_slash and skip_mtls_uri_regex to be enabled, and a request path that decodes to an exempted URI. The mTLS exemption is matched against one form of the path, while the request is routed using another. An attacker who can craft a path that decodes to an exempted URI can reach a route that was supposed to require a client certificate.
CVE-2026-124726 is a 6.9 medium-severity issue affecting 3.19.0. It involves an MCP caller reaching an undeclared API path under the declared tool's HTTP method, using Route-added credentials. The MCP integration is supposed to constrain a tool to a declared API path and method. If the caller can reach an undeclared path while still using the route's credentials, the tool's scope is wider than advertised. This is a new kind of trust-boundary bug, specific to agent-facing interfaces, and it is likely to become more common as gateways add MCP support.
Two of the flaws can affect requests without authentication under specific route settings. That is the sentence operators should focus on. A gateway vulnerability that requires an authenticated user is serious; one that can be triggered without authentication is more serious, because it removes the attacker's need for any credential. The conditions are specific, which limits exposure, but the affected versions are broad.
Fallback and degradation are the pattern
Several of the flaws share a design pattern: a fallback or degradation mode that is meant to keep the gateway available when a dependency fails, but that weakens the security guarantees in the process. forward-auth with allow_degradation: true is the clearest example. The option exists so that a failure of the authorization service does not take down the entire gateway. That is a reasonable availability goal. But if degradation means "allow the request through," it is also a security hole. The correct degradation mode depends on the application: fail closed for sensitive routes, fail open for public ones, and never fail open silently.
multi-auth fallback has the same shape. The plugin tries one authentication method, and if it fails or is unavailable, it tries another. The fallback is useful when different clients use different methods. But the upstream may trust headers that are only meaningful for one method. If the fallback path does not set or strip those headers correctly, the upstream can be confused about which method actually succeeded. The fix is not just to patch the plugin; it is to make the identity contract explicit: which headers are trustworthy, which method produced them, and what happens when the method changes.
jwe-decrypt with strict: false is a third variation. Strict mode is supposed to reject tokens that do not meet the expected format or header requirements. Turning it off makes the plugin more permissive, which may be necessary for compatibility with some clients, but it also widens the set of tokens that are accepted. The forward_header condition adds another degree of freedom: the header that carries the decrypted token can differ from the header that the token itself declares. If the gateway and the upstream disagree about which header is authoritative, the token can be interpreted differently at each hop.
The common thread is that security controls often have a "compatibility" or "availability" knob, and that knob can silently change the threat model. An operator enables degradation to avoid an outage, or disables strict mode to support a client, and does not realize that the change also weakens the guarantee. The fix is partly technical, but it is also operational: document what each knob does to the security model, default to the safe setting, and require an explicit decision to weaken it.
MCP and OpenAPI add new surfaces
Two of the CVEs involve MCP, the Model Context Protocol, and one involves OpenAPI. That is a sign of where API gateways are heading. Gateways are no longer just HTTP routers for human-facing applications. They are increasingly the policy point for agent-facing interfaces: tools, resources, and prompts that a model can call. That expands the trust boundary in a way that traditional gateway security was not designed for.
openapi-to-mcp generates MCP tools from an OpenAPI document. The appeal is obvious: an organization that already has an OpenAPI spec can expose its APIs to agents without writing a separate integration. The risk is equally obvious: the generated tool inherits the spec's assumptions, and those assumptions may not match the gateway's. If a header is declared in the OpenAPI document but is also used by the gateway for identity, the two uses can collide. The low severity of CVE-2026-124719 reflects the narrow conditions, but the design question is broader. When a gateway generates an agent interface, it needs a clear rule for reserved headers and a way to validate that the generated tool respects it.
CVE-2026-124726 is more direct. An MCP caller can reach an undeclared API path under the declared tool's HTTP method, using Route-added credentials. The tool is supposed to be scoped to a specific path and method. If the caller can reach a different path with the same credentials, the scope is not enforced. That is a classic confused-deputy problem: the tool has credentials, and the caller can use them for something the tool was not supposed to do. The fix likely involves stricter path matching and credential scoping, but the broader lesson is that agent-facing interfaces need the same authorization rigor as human-facing ones, if not more.
APISIX 3.20.0 also removes the deprecated mcp-bridge plugin. Removing a plugin is a behavior change, and operators who still rely on it need to migrate. The release notes describe other behavior changes: wolf-rbac moves custom header_prefix from Consumer to Route or Service; the release requires every configured Keycloak permission and scope; openapi-to-mcp changes header precedence and origin/external-reference handling. Each of those changes is a security fix, but each also has the potential to break an existing configuration. An upgrade is not just a version bump; it is a review of how the gateway's identity and authorization model is configured.
Upgrade and verify
The first step in upgrading is to inventory the routes and plugins that are affected. The CVEs touch jwe-decrypt, forward-auth, multi-auth, wolf-rbac, authz-keycloak, openapi-to-mcp, and the mTLS exemption path. An operator should know which of those are in use, which versions are deployed, and which routes depend on the behavior that is changing.
The second step is to test the path handling. The CVE-2026-124680 and CVE-2026-124723 flaws are about paths that are interpreted differently at different layers. A test suite should include encoded dot segments, encoded slashes, double-encoded characters, mixed case, trailing dots, and other normalization edge cases. The goal is not to enumerate every possible path; it is to verify that the gateway and the upstream agree on which route a request matches. A canary deployment with real traffic is useful, but it is not a substitute for adversarial path tests.
The third step is to review the identity headers. Which headers does the gateway add? Which headers does it strip from client requests? Which headers does the upstream trust? If a plugin can add a header under a fallback condition, the upstream's trust model has to account for that condition. The safest design is for the gateway to strip all client-supplied identity headers and to add its own with a clear, method-specific contract. If that is not possible, the upstream should validate the header against a signature or a token, not just trust its presence.
The fourth step is to review the authorization policies. CVE-2026-124716 is about authz-keycloak accepting a user with only one of several required permissions. An operator should check that the plugin is configured to require all of the intended permissions, not just one, and that the tests cover the difference. The same applies to scope checks: a policy that requires multiple scopes should fail if any are missing.
The fifth step is to review the mTLS exemptions. CVE-2026-124723 is about a path that decodes to an exempted URI. An operator should check which URIs are exempt, whether the exemption is matched against the raw or decoded path, and whether an attacker can craft a path that reaches a protected route while matching the exemption. The safest approach is to make the exemption list as small as possible and to match it against a canonical path.
The sixth step is to plan the rollback. A security upgrade can break a configuration, and a broken gateway can be an outage. The operator should have a way to roll back to the previous version, a way to compare behavior between versions, and a communication plan for the teams that depend on the gateway. The release notes and the advisories are the primary sources; a third-party summary can help, but it should not replace them.
What to watch
The first thing to watch is exploitation. As of the November 13 CISA KEV snapshot, neither CVE-2026-124680 nor CVE-2026-124679 was listed. A third-party dark-chat count found one post mentioning each, but the counts may overlap and do not establish exploitation. That is a snapshot, not a guarantee. Public proof-of-concept code, scanning activity, or a KEV addition would change the risk calculation. Operators should monitor the advisories and the usual threat-intelligence sources.
The second is the patch cadence. Seven CVEs in one release suggests a concentrated security review, which is good. It also suggests that more issues may be found. A 3.20.1 release with follow-up fixes is common after a large security release, and operators should be prepared to upgrade again. The Apache APISIX project's advisory index is the authoritative source.
The third is the MCP surface. The two MCP-related CVEs are a preview of a larger problem. As gateways add agent-facing interfaces, the number of ways to confuse a tool's scope will grow. The industry does not yet have mature patterns for agent authorization, and the gateway is the natural place to enforce them. Watch for more advisories in this area, and watch for standards work on MCP security.
The fourth is the configuration burden. Many of these flaws are only exploitable under specific settings: strict: false, allow_degradation: true, match_uri_encoded_slash, skip_mtls_uri_regex. That is good news for operators who use the safe defaults, and bad news for operators who enabled the permissive options for compatibility. The long-term fix is to make the safe behavior the default and to make the risky behavior explicit, documented, and hard to enable accidentally.
The fifth is a broader lesson for API gateway security. The API gateway is a policy enforcement point, but only as good as the consistency of its interpretation. Path normalization, identity headers, fallback authentication, generated interfaces, etc. can be inconsistent between the API gateway and the upstream. While the seven CVEs are concrete bugs, the general lesson is that if you have a gateway, you should expect that your route table and the upstreams aren't always in sync. You should test for these inconsistencies before the attackers do.
APISIX 3.20.0 teaches us that gateway security isn't a single feature. It's a property of the entire path. Request -> Route -> Plugin chain -> Identity headers -> Upstream -> Authorization policy. Changes to one part may be undermined by inconsistency in another. APISIX 3.20.0 fixes seven known issues. It's up to the operator to make sure everything else is consistent.
Sources
- Apache APISIX 3.20.0 release notes, Apache APISIX blog, November 11, 2026.
- Apache Security Advisories, Q4 2026, oss-sec mailing list archive.