CriticalGHSA-28jg-cgg7-j4wcBIT-kafka-2026-33557CVE-2026-33557

Apache Kafka does not validate JWT tokens in its OAUTHBEARER authentication implementation

Published 20 Apr 2026 · Updated 10 Sept 2026

Is your project on an affected org.apache.kafka:kafka-clients?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=4.1.0 <4.1.2
Fixed in
4.1.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.kafka:kafka-clients -DdepVersion=4.1.2 -DforceVersion=true

Details

A 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.

Apache advises 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.

Is GHSA-28jg-cgg7-j4wc in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.kafka:kafka-clients, and gives you the command that fixes it.

More advisories for org.apache.kafka:kafka-clients

  • MediumCVE-2026-33558Apache Kafka exposes sensitive information in its DEBUG logs · 20 Apr 2026
  • HighCVE-2026-35554Apache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race Condition · 7 Apr 2026
  • MediumCVE-2025-27817Apache Kafka Client Arbitrary File Read and Server Side Request Forgery Vulnerability · 10 Jun 2025
  • MediumCVE-2024-31141Apache Kafka Clients: Privilege escalation to filesystem read-access via automatic ConfigProvider · 19 Nov 2024
  • MediumCVE-2017-12610Improper Authentication in Apache Kafka · 13 May 2022
  • MediumCVE-2021-38153Observable Discrepancy in Apache Kafka · 23 Sept 2021
org.apache.kafka:kafka-clients security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.