# CVE-2021-22160: Authentication with JWT allows use of “none”-algorithm

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 52.9%, higher than 98% of CVEs (2026-12-01)
- Published: 2021-05-26T12:22:31.000Z
- Modified: 2026-06-17T03:36:43.380Z
- Also known as: GHSA-3cv4-xxv7-934q
- Weaknesses: CWE-347
- Assigned by: apache

## 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).

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Pulsar: from Apache Pulsar before 2.7.1
- org.apache.pulsar:pulsar (Maven): before 2.7.2
- apache pulsar: before 2.7.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://lists.apache.org/thread.html/r347650d15a3e9c5f58b83e918b6ad6dedc2a63d3eb63da8e6a7be87e%40%3Cusers.pulsar.apache.org%3E> (mailing-list, vendor-advisory, web)
- <https://lists.apache.org/thread.html/rf2e90942996dceebac8296abf39257cfeb5ae918f82f7af3d37a48c5%40%3Cdev.pulsar.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cdev.pulsar.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cusers.pulsar.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r8e545559781231a83bf0644548c660255859e52feb86bbfcd42590da%40%3Cdev.pulsar.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r9a12b4da2f26ce9b8f7e7117a879efaa973dab7e54717bbc7923fab1%40%3Cdev.pulsar.apache.org%3E> (mailing-list, vendor-advisory, web)
- <https://lists.apache.org/thread.html/rbe845aa1573a61769b9c5916c62971f4b10de87c2ea5f38a97f0cf84%40%3Cdev.pulsar.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rca54f4b26ba5e6f2e39732b47ec51640e89f57e3b6a38ac3bab314df%40%3Cdev.pulsar.apache.org%3E> (mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22160> (advisory)
- <https://github.com/apache/pulsar/releases/tag/v2.7.2> (web)
- <https://lists.apache.org/thread.html/r08c7df60cae031361df7fbac39d08b6d5b5079e74db5195d409db9a2@%3Cdev.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r8e545559781231a83bf0644548c660255859e52feb86bbfcd42590da@%3Cdev.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550@%3Cdev.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550@%3Cusers.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rbe845aa1573a61769b9c5916c62971f4b10de87c2ea5f38a97f0cf84@%3Cdev.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rca54f4b26ba5e6f2e39732b47ec51640e89f57e3b6a38ac3bab314df@%3Cdev.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/re2ae364e0c02093dc721699698c6f23cfbba0220c78b5e28cafeae81@%3Ccommits.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf2e90942996dceebac8296abf39257cfeb5ae918f82f7af3d37a48c5@%3Cdev.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf54fefc25c49d4715d484133d438f13bf2e515a5fed5d3a745d4f6e7@%3Ccommits.pulsar.apache.org%3E> (web)

## Sources

- CVE List: [CVE-2021-22160](https://www.cve.org/CVERecord?id=CVE-2021-22160), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-3cv4-xxv7-934q](https://github.com/advisories/GHSA-3cv4-xxv7-934q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-22160](https://nvd.nist.gov/vuln/detail/CVE-2021-22160), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22160 · Whole record: https://cve.day/CVE-2021-22160.json · Rebuilt by cve.day 2026-11-25T22:58:01.538Z
