CVE-2026-33557: Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication
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.
Security readout for executives and security teams
Plain-English summary
Apache Kafka could accept a forged login token when using the affected OAUTHBEARER configuration. In affected versions, the default validator did not verify the token signature, issuer, or audience, so a remote attacker could impersonate a Kafka user. This is critical because it threatens data confidentiality and integrity in Kafka-backed systems.
Executive priority
Treat this as urgent for any Kafka environment using OAUTHBEARER on affected versions. The risk is unauthorized identity impersonation, which can compromise sensitive event streams and business workflows. Patch or apply the Apache-recommended validator configuration promptly.
Technical view
Kafka 4.1.0 and 4.1.1 are described as vulnerable when sasl.oauthbearer.jwt.validator.class uses DefaultJwtValidator. That validator accepts JWTs without validating signature, issuer, or audience, allowing preferred_username impersonation. Apache advises BrokerJwtValidator for affected 4.1.x deployments; Kafka 4.1.2 and 4.2.0 and later fix validation.
Likely exposure
Most likely exposure is Kafka brokers running 4.1.0 or 4.1.1 with OAUTHBEARER authentication and the default JWT validator. Systems not using OAUTHBEARER, not running affected versions, or already configured with BrokerJwtValidator are less likely exposed based on the provided sources.
Exploitation context
The CVSS vector indicates network reachability, low complexity, no privileges, and no user interaction. The provided bundle marks KEV as false and does not cite active exploitation. Public evidence here supports exploitability in principle, not confirmed exploitation in the wild.
Researcher notes
Evidence is strong for the default validation flaw and vendor-stated remediation. The source bundle is incomplete on product packaging impact beyond Apache Kafka itself. Do not assume downstream distributions are affected or fixed without checking their advisories.
Mitigation direction
Upgrade affected Kafka deployments to 4.1.2, 4.2.0, or later.
On Kafka 4.1.0 or 4.1.1, explicitly configure BrokerJwtValidator.
Prioritize internet-exposed or shared Kafka clusters first.
Review Apache Kafka guidance before applying environment-specific changes.
Validation and detection
Inventory Kafka broker versions across all environments.
Check whether OAUTHBEARER authentication is enabled on broker listeners.
Verify sasl.oauthbearer.jwt.validator.class is not DefaultJwtValidator on affected versions.
Confirm upgraded clusters run Kafka 4.1.2, 4.2.0, or later.
Review authentication logs for unexpected preferred_username usage.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1285: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-1285 · source CWE mapping
Improper Validation of Specified Index, Position, or Offset in Input
Improper Validation of Specified Index, Position, or Offset in Input represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Incorrect Implementation of Authentication Algorithm
Incorrect Implementation of Authentication Algorithm represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.