Authentication bypass in Apache APISIX via certain jwt-auth plugin configurations

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-39999?

CVE-2026-39999 is a vulnerability classified as Authentication Bypass by Spoofing, affecting Apache APISIX (affected versions: 2.2 – ≤ 3.16.0). This vulnerability is rated High, with a CVSS score of 7. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Authentication Bypass by Spoofing vulnerability in Apache APISIX. The attacker can completely bypass authentication capitalising on certain configurations of jwt-auth plugin. This issue affects Apache APISIX: from v2.2 through v3.16.0. Users are recommended to upgrade to version v3.17.0, which fixes the issue.

Affected products and scope

All releases of Apache APISIX from the earliest version covered by the advisory up to and including the last release before the fix are affected, and the vendor states the fix lands in the next release. In scope are deployments that run the gateway with the jwt-auth plugin in the configurations the advisory identifies. The record does not enumerate those configurations, so it does not let you rule out your own setup by inspection; check the vendor advisory against your plugin configuration. Deployments that do not use jwt-auth are outside the affected surface as described.

Technical details

The weakness class is authentication bypass by spoofing, and the component at fault is the jwt-auth plugin. The untrusted input is the credential material a client presents to the plugin on a protected route. The vendor states that certain configurations of the plugin allow the authentication check to be bypassed, and that the result is a complete bypass rather than a partial one. The public description does not spell out which configuration settings are at fault, what a spoofed request looks like, or where in the plugin the check goes wrong, so teams cannot reason about their own exposure from the record alone. The practical question is whether a route relies on jwt-auth and whether its configuration matches the conditions the vendor calls out in the advisory.

Exploitability

The vector is network based. No credentials and no user interaction are needed, so the attacker only has to be able to send requests to an APISIX instance that exposes a route using the affected jwt-auth configuration. That configuration dependency is the main practical constraint: deployments that do not use the plugin, or that use it in a configuration outside the affected set, are not reachable this way. No public exploit code is reported in the record and it carries no known-exploited flag.

Technical impact

An attacker gains the ability to have requests accepted as authenticated, which in gateway terms means reaching upstream services through routes they should not be able to use. The vendor describes the bypass as complete, so the attacker is not limited to a subset of protected routes beyond what the affected configuration allows. Apache's own severity scoring places the direct impact on the systems behind the gateway rather than on APISIX itself: the gateway is not itself corrupted or taken down, but the services it fronts are exposed to unauthorised reads and writes. The exact limits, including which route configurations are exploitable, are not described in public detail.

Business impact

The gateway is usually the front door for a set of internal or partner facing APIs, and for many of those services it is the only place authentication is enforced. A bypass means an outside party can reach those services as a trusted caller, without an account and without a token issued to them. What that costs depends on what sits behind the route: read access to customer records or internal APIs, the ability to act as another user or service, or simply a hole in the audit trail, since downstream services will log the request as legitimately authenticated. If those APIs carry personal or regulated data, an undetected bypass is also a reporting obligation, not just an incident. Platform teams, API owners and anyone who relies on APISIX as their authentication boundary should treat this as their problem.

Remediation

Upgrade to the release the vendor names as the fix. That is the only remedy the record supports, and no standalone workaround is documented in it. Where an upgrade has to be scheduled rather than done immediately, the useful interim step is to inventory every route that uses jwt-auth, compare those plugin configurations against the vendor advisory, and reduce exposure on instances reachable from untrusted networks until they are patched. Treat the upgrade as the close-out condition, not the configuration review.

Detection

Start with configuration: enumerate routes and plugin configs for jwt-auth across your APISIX instances, and flag any instance running a release older than the fixed one. Then look at gateway access logs for requests to protected routes that returned success without a matching successful authentication event at your identity provider, and for callers reaching upstream services that have no corresponding token issuance. Because the request is accepted as authenticated, downstream service logs will not show it as anomalous on their own, so the gateway and identity provider logs have to be correlated. Any such finding on an internet facing instance should be treated as a possible compromise rather than a misconfiguration until proven otherwise.

Sources (7)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.