CVE-2021-22160
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIf 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).
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceApache Pulsar's JWT authentication bypasses signature verification when a token's algorithm is set to 'none', allowing attackers to forge tokens and authenticate as any user including administrators.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 2.7.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check Apache Pulsar installed versionRun 'pulsar version' or check the pulsar packages installed on the system. Alternatively, inspect the pulsar-home directory or broker logs for the version string.Affected if The version is below 2.7.1 (e.g., 2.6.x, 2.5.x, etc.)
-
Verify JWT authentication is configuredExamine the broker configuration file (typically broker.conf or standalone.conf) for authentication settings. Look for 'authenticationEnabled=true' and 'authenticationProviders' including 'org.apache.pulsar.broker.authentication.AuthenticationProviderToken'.Affected if JWT authentication is enabled as an authentication provider in the broker configuration.
-
Check if 'none' algorithm is allowed for JWT tokensInspect the broker configuration for JWT/security settings. Look for parameters like 'tokenSecretKey', 'tokenPublicKey', or 'jwt.broker.allowed.algo'. Check if 'none' or an empty algorithm is explicitly permitted or not restricted.Affected if The configuration does not enforce a mandatory signature algorithm, or 'none' is explicitly listed as an allowed algorithm for JWT token validation.
-
Inspect active JWT tokens in the environmentReview any stored or deployed JWT tokens (in configuration, secrets management, or Kubernetes secrets if applicable) and decode them to inspect the header. Look for '"alg":"none"' in the token header.Affected if Any active JWT token has 'alg' set to 'none' in its header, indicating it was crafted to bypass signature verification.
You are affected if Apache Pulsar is running a version below 2.7.1, JWT authentication is enabled, and the broker does not reject tokens with the 'none' algorithm, allowing potential forged administrative tokens.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.7.1
Configure Pulsar to reject JWT tokens with 'none' algorithm and ensure signature validation is mandatory; update to patched versions and audit existing credentials.
Apache Pulsar 2.7.1 or later
- 1. Backup your current Pulsar configuration and data directories
- 2. Stop all Pulsar services (broker, bookie, zookeeper, etc.)
- 3. Upgrade Pulsar components to version 2.7.1 or later
- 4. Review authentication configuration to ensure JWT settings are correct
- 5. Start Pulsar services in the correct order (zookeeper first, then bookie, then broker)
- 6. Verify JWT authentication is working properly
- 7. Test that tokens with invalid signatures or 'none' algorithm are rejected
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-22160 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-22160 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data