{"id":"CVE-2022-29266","aliases":["BIT-apisix-2022-29266","EUVD-2022-33609","GHSA-x46m-gg6j-22gf"],"status":"published","title":"apisix/jwt-auth may leak secrets in error response","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.0814,"percentile":0.94892,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-209"],"published":"2022-04-20T07:15:13Z","modified":"2026-10-28T02:30:41Z","fixes":[{"ecosystem":"Bitnami","package":"apisix","fixed_in":["2.13.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"apisix","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.13.1"}]}]}],"products":[{"vendor":"apache","product":"apisix"},{"vendor":"apache software foundation","product":"apache apisix"}],"references":[{"url":"https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr","tags":["x_refsource_MISC","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/20/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29266","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-x46m-gg6j-22gf"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29266.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-29266","title":"apisix/jwt-auth may leak secrets in error response","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.","status":"published","published":"2022-04-20T07:15:13Z","modified":"2024-08-03T06:17:54.494Z","cwes":["CWE-209"],"updated_at":"2026-11-02T14:34:36.578327Z"}],"euvd":[{"id":"EUVD-2022-33609","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.","status":"published","published":"2022-04-20T07:15:13Z","modified":"2024-08-03T06:17:54Z","updated_at":"2026-11-03T03:25:39.28463Z"}],"ghsa":[{"id":"GHSA-x46m-gg6j-22gf","title":"In APache APISIX before 3.13.1, an attacker can obtain a plugin-configured secret via an error...","description":"In APache APISIX before 3.13.1, an attacker can obtain a plugin-configured secret via an error message response by sending an incorrect JSON Web Token to a route protected by the jwt-auth plugin. The error logic in the dependency library lua-resty-jwt enables sending an RS256 token to an endpoint that requires an HS256 token, with the original secret value included in the error response.","status":"published","published":"2022-04-21T00:00:26Z","modified":"2023-01-27T05:01:45Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-209"],"updated_at":"2026-11-02T14:41:57.859539Z"}],"nvd":[{"id":"CVE-2022-29266","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.","status":"published","published":"2022-04-20T08:15:07.74Z","modified":"2026-06-17T04:39:56.893Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-209"],"updated_at":"2026-11-02T14:07:16.9948Z"}],"osv":[{"id":"BIT-apisix-2022-29266","title":"apisix/jwt-auth may leak secrets in error response","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.","status":"published","published":"2024-03-06T10:50:44.063Z","modified":"2026-09-08T08:45:33.079510943Z","updated_at":"2026-11-02T15:28:28.267217Z"},{"id":"CVE-2022-29266","title":"apisix/jwt-auth may leak secrets in error response","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.","status":"published","published":"2022-04-20T07:15:13Z","modified":"2026-10-28T02:30:41.762492139Z","cwes":["CWE-209"],"updated_at":"2026-11-02T15:44:25.164673Z"}]}}
