← Vulnerability feed

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.

9.8 CVSS 3.1 Critical EPSS 53% · top 1.1% CWE-347 · Improper verification of cryptographic signature
9.8CVSS 3.1 base score, v2 7.5
53%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
16References
17 Jun 2026Last modified by NVD

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

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

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

LinkTags
https://lists.apache.org/thread.html/r347650d15a3e9c5f58b83e918b6ad6dedc2a63d3eb63da8e6a7be87e%40%3Cusers.pulsar.apache. Mailing ListVendor Advisory
https://lists.apache.org/thread.html/r8e545559781231a83bf0644548c660255859e52feb86bbfcd42590da%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/r9a12b4da2f26ce9b8f7e7117a879efaa973dab7e54717bbc7923fab1%40%3Cdev.pulsar.apache.or Mailing ListVendor Advisory
https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cusers.pulsar.apache.
https://lists.apache.org/thread.html/rbe845aa1573a61769b9c5916c62971f4b10de87c2ea5f38a97f0cf84%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/rca54f4b26ba5e6f2e39732b47ec51640e89f57e3b6a38ac3bab314df%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/rf2e90942996dceebac8296abf39257cfeb5ae918f82f7af3d37a48c5%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/r347650d15a3e9c5f58b83e918b6ad6dedc2a63d3eb63da8e6a7be87e%40%3Cusers.pulsar.apache. Mailing ListVendor Advisory
https://lists.apache.org/thread.html/r8e545559781231a83bf0644548c660255859e52feb86bbfcd42590da%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/r9a12b4da2f26ce9b8f7e7117a879efaa973dab7e54717bbc7923fab1%40%3Cdev.pulsar.apache.or Mailing ListVendor Advisory
https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cusers.pulsar.apache.
https://lists.apache.org/thread.html/rbe845aa1573a61769b9c5916c62971f4b10de87c2ea5f38a97f0cf84%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/rca54f4b26ba5e6f2e39732b47ec51640e89f57e3b6a38ac3bab314df%40%3Cdev.pulsar.apache.or
https://lists.apache.org/thread.html/rf2e90942996dceebac8296abf39257cfeb5ae918f82f7af3d37a48c5%40%3Cdev.pulsar.apache.or

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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2024-27135Apache pulsar improper input validation vulnerabilityImproper input validation in the Pulsar Function Worker allows a malicious authenticated user to execute arbitrary Java code on the Pulsar Function w…EPSS 6.0%9.9CVE-2024-27317Apache Pulsar Functions Worker zip extraction path traversalAuthenticated users can upload function jar or nar files to the Pulsar Functions Worker, which extracts them as zip archives without validating filen…EPSS 57%analysed8.8CVE-2024-27894Apache pulsar improper input validation vulnerabilityThe Pulsar Functions Worker includes a capability that permits authenticated users to create functions where the function's implementation is referen…EPSS 1.9%8.8CVE-2023-30429Apache pulsar incorrect authorization vulnerabilityIncorrect Authorization vulnerability in Apache Software Foundation Apache Pulsar. This issue affects Apache Pulsar: before 2.10.4, and 2.11.0. When …EPSS 1.0%8.2CVE-2022-34321Apache pulsar missing authentication for critical function vulnerabilityImproper Authentication vulnerability in Apache Pulsar Proxy allows an attacker to connect to the /proxy-stats endpoint without authentication. The v…EPSS 1.8%8.1CVE-2023-30428Apache pulsar incorrect authorization vulnerabilityIncorrect Authorization vulnerability in Apache Software Foundation Apache Pulsar Broker's Rest Producer allows authenticated user with a custom HTTP…EPSS 0.82%8.1CVE-2022-33684Apache pulsar improper certificate validation vulnerabilityThe Apache Pulsar C++ Client does not verify peer TLS certificates when making HTTPS calls for the OAuth2.0 Client Credential Flow, even when tlsAllo…EPSS 0.74%7.5CVE-2023-37544Apache pulsar improper authentication vulnerabilityImproper Authentication vulnerability in Apache Pulsar WebSocket Proxy allows an attacker to connect to the /pingpong endpoint without authentication…EPSS 1.4%

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.