CVE-2026-110952
Apache Kafka: Broker does not enforce JWT issuer and audience validation for SASL/OAUTHBEARER by default
Description
A Kafka broker that authenticates clients with SASL/OAUTHBEARER using the bundled JWKS-backed validator always verifies the JWT signature, but two further checks are only performed when explicitly configured:
- The issuer (iss) claim is verified only when sasl.oauthbearer.expected.issuer is set. When it is unset, a validly-signed token carrying the expected audience is accepted regardless of which issuer minted it.
- An audience (aud) claim is required only when sasl.oauthbearer.expected.audience is set. When it is unset, a validly-signed token that omits the aud claim is accepted. (A token that carries an aud claim is still rejected when no expected audience is configured.)
Both options default to unset and have been documented as optional (Importance LOW) since KIP-768 (3.1.0).
Impact: The exposure is realizable mainly in deployments whose JWKS endpoint serves signing keys for more than one issuer (a multi-tenant identity provider, an aggregated/shared JWKS, or shared signing keys): a token minted for a different issuer, or a token lacking an audience, may be accepted to authenticate — potentially as a higher-privileged principal. In a single-issuer deployment where the provider controls the iss claim and issues audience-scoped tokens, exposure is limited. The signature trust anchor remains enforced in all cases. This is distinct from CVE-2026-33557 (acceptance of unsigned/unvalidated tokens); here the signature is validated and only the issuer/audience checks are not enforced by default.
Mitigation (all affected versions, no upgrade required): Set both sasl.oauthbearer.expected.issuer (to your provider's exact iss value) and sasl.oauthbearer.expected.audience (to the audience(s) your brokers expect), per listener. Brokers that set these perform exact-match issuer/audience checks and are not affected. Both have been available since 3.1.0.
Resolution:
- From Apache Kafka 4.4.0: a broker configured with a JWKS endpoint fails to start unless both sasl.oauthbearer.expected.issuer and sasl.oauthbearer.expected.audience are set (secure by default). Deployments that intentionally do not restrict the issuer and/or audience may opt out per axis with sasl.oauthbearer.allow.unverified.issuer=true and/or sasl.oauthbearer.allow.unverified.audience=true.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.kafka » kafkapreliminary | >= 3.1.0, < 4.4.0 | 4.4.0 |
Blast radius
75% of the dependent artifacts (252) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,651 |
| 2 hops | 3,654 |
| 3 hops | 1,489 |
| 4 hops | 370 |
| 5 hops | 46 |
| 6 hops | 13 |
Most used dependents
- org.springframework.kafka » spring-kafka-test289 usages
- org.springframework.cloud » spring-cloud-starter-stream-kafka280 usages
- org.springframework.cloud » spring-cloud-stream-binder-kafka174 usages
- io.github.embeddedkafka » embedded-kafka74 usages
- com.github.charithe » kafka-junit47 usages
- com.smartbear » ready-api-soapui-pro42 usages
- org.springframework.cloud » spring-cloud-starter-bus-kafka41 usages
- ch.admin.bit.jeap » jeap-messaging-infrastructure-kafka-test27 usages
- com.rarible.core » rarible-core-test-common25 usages
- org.apache.atlas » atlas-notification24 usages
- com.smartbear » loadui-api20 usages
- com.smartbear » loadui-utils15 usages
- net.mguenther.kafka » kafka-junit15 usages
- org.springframework.cloud » spring-cloud-stream-binder-kafka-streams15 usages
- com.smartbear » loadui-base14 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
