Vulnerability record · CVE-2021-22160 · published 26 May 2021
CVE-2021-22160: Apache Pulsar JWT authentication bypass via alg=none
Apache · Pulsar
Apache Pulsar, when configured to authenticate clients with JWT-based tokens, fails to validate the token signature if the presented token declares the algorithm "none". An attacker can therefore forge a token and connect to the Pulsar instance as any user, including administrators.
Description
If Apache Pulsar is configured to authenticate clients using tokens based on JSON Web Tokens (JWT), the signature of the token is not validated if the algorithm of the presented token is set to "none". This allows an attacker to connect to Pulsar instances as any user (incl. admins).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8 with no authentication or user interaction required and a complete authentication bypass to admin access, plus a high EPSS score.
What it is
Apache Pulsar, when configured to authenticate clients with JWT-based tokens, fails to validate the token signature if the presented token declares the algorithm "none". An attacker can therefore forge a token and connect to the Pulsar instance as any user, including administrators.
Impact
An attacker gains full authenticated access to the Pulsar instance as an arbitrary identity, including admin, allowing read and write of data and administrative control over the cluster.
Attack surface
Reachable over the network against Pulsar's token-authenticated client interface; no authentication is required because the forged token is accepted, and no user interaction is needed. It only applies where JWT token authentication is enabled.
Exploitation
Not listed in CISA KEV and no public exploit references are tagged in the record, but EPSS is high at roughly 0.53 (98.9th percentile), indicating elevated likelihood of exploitation activity.
What to do
- Upgrade Apache Pulsar to a version that validates the JWT signature and rejects the "none" algorithm; consult the Apache Pulsar vendor advisories for the fixed release.
- If immediate patching is not possible, disable JWT token authentication or restrict Pulsar client ports to trusted networks only.
- Rotate any JWT signing keys and tokens that may have been exposed, since forged tokens could have been used undetected.
- Audit Pulsar authentication configuration to confirm which clusters use token-based auth and prioritize those for patching.
Detection
- Search Pulsar broker and authentication logs for tokens with alg set to "none" or for authentication events that succeed without a valid signature.
- Monitor for connections to Pulsar client ports from unexpected source IPs or with unusual user identities, especially admin.
- Alert on administrative actions or topic access performed by accounts that normally do not connect to the cluster.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2021-22160 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-22160), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.