# CVE-2022-29266: apisix/jwt-auth may leak secrets in error response

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 7.45% (percentile 95, 2026-11-26)
- **CWE:** CWE-209
- **Published:** 2022-04-20T07:15:13.000Z
- **Modified:** 2026-06-17T04:39:56.893Z

## Who should check

- Anyone running Apache Software Foundation Apache APISIX \>= Apache APISIX, \<= 2.13.0

## Description

In APache APISIX before 3.13.1, the jwt-auth plugin has a security issue that leaks the user's secret key because the error message returned from the dependency lua-resty-jwt contains sensitive information.

## Affected and fixed versions

- Apache Software Foundation Apache APISIX: \>= Apache APISIX, \<= 2.13.0 (cvelist)

## Mitigation

- Vendor workaround: 1. Upgrade to 2.13.1 and above
- 
- 2. Apply the following patch to Apache APISIX and rebuild it:
- This will make this error message no longer contain sensitive information and return a fixed error message to the caller.
- For the current LTS 2.13.x or master:
- https://github.com/apache/apisix/pull/6846
- https://github.com/apache/apisix/pull/6847
- https://github.com/apache/apisix/pull/6858
- For the last LTS 2.10.x:
- https://github.com/apache/apisix/pull/6847
- https://github.com/apache/apisix/pull/6855
- 
- 3. Manually modify the version you are using according to the commit above and rebuild it to circumvent the vulnerability.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-29266. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-29266.md
Affected: Apache Software Foundation Apache APISIX >= Apache APISIX, <= 2.13.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Apache Software Foundation Apache APISIX: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-29266 being exploited?

There is no confirmed exploitation: CVE-2022-29266 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 7.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-29266?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2022-29266?

Apache Software Foundation Apache APISIX \>= Apache APISIX, \<= 2.13.0.

### Is there a fix for CVE-2022-29266?

No fixed version is listed in the sources yet. Vendor workaround: 1. Upgrade to 2.13.1 and above  2. Apply the following patch to Apache APISIX and rebuild it: This will make this error message no longer contain sensitive information and return a fixed error message to the caller. For the current LTS 2.13.x or master: https://github.com/apache/apisix/pull/6846 https://github.com/apache/apisix/pull/6847 https://github.com/apache/apisix/pull/6858 For the last LTS 2.10.x: https://github.com/apache/apisix/pull/6847 https://github.com/apache/apisix/pull/6855  3. Manually modify the version you are using according to the commit above and rebuild it to circumvent the vulnerability.

### How do I check if I'm affected by CVE-2022-29266?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr>
- other: <http://www.openwall.com/lists/oss-security/2022/04/20/1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-29266>

HTML: <https://flawdb.com/CVE-2022-29266> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-29266>
