Vulnerability
CVE-2026-33557
A possible security vulnerability has been identified in Apache Kafka. By default, the broker property `sasl.oauthbearer.jwt.validator.class` is set to `org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator`. It accepts any JWT token without validating its signature, issuer, or audience. An attacker can generate a JWT token from any issuer with the `preferred_username` set to any user, and the broker will accept it. We advise the Kafka users using kafka v4.1.0 or v4.1.1 to set the config `sasl.oauthbearer.jwt.validator.class` to `org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator` explicitly to avoid this vulnerability. Since Kafka v4.1.2 and v4.2.0 and later, the issue is fixed and will correctly validate the JWT token.
23 advisories report this vulnerability, across 4 ecosystems.
Advisories
- CGA-2pj4-5rj4-h45m
- CGA-36gr-45r7-x7jv
- CGA-3m4c-qfw2-wg6p
- CGA-5283-7c4g-78cw
- CGA-66pq-8337-j4wc
- CGA-6m47-vqcf-qxfw
- CGA-87wh-4x9v-3c36
- CGA-9vcr-3m22-7ghq
- CGA-g9xm-gxwg-qqv7
- CGA-h37m-3gpx-wx55
- CGA-h89c-wx9g-grr7
- CGA-hv28-98x4-v592
- CGA-j65h-37fg-wwvw
- CGA-jjfw-6vx6-w5jm
- CGA-m3h8-fr67-7wq7
- CGA-pg46-4m94-gjrx
- CGA-r8hx-ch8m-p2q5
- CGA-rgw4-rvhw-7qw5
- CGA-v598-598w-xv6c
- CGA-vhq3-9332-3cc5
- CGA-wwvc-qjwf-8859
-
GHSA-28jg-cgg7-j4wc
Apache Kafka does not validate JWT tokens in its OAUTHBEARER authentication implementation
-
UBUNTU-CVE-2026-33557
A possible security vulnerability has been identified in Apache Kafka. By default, the broker property `sasl.oauthbearer.jwt.validator.class` is set to `org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator`.…
References
- https://kafka.apache.org/cve-list
- https://lists.apache.org/thread/v57o00hm6yszdpdnvqx2ss4561yh953h
- http://www.openwall.com/lists/oss-security/2026/04/17/2
- https://access.redhat.com/security/cve/CVE-2026-33557
- https://bugzilla.redhat.com/show_bug.cgi?id=2459739
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33557.json