# CVE-2024-53861: Issuer field partial matches allowed in pyjwt

- Severity: Low 2.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N`
- 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): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-29T18:43:07.644Z
- Modified: 2026-09-10T03:50:21.333Z
- Also known as: GHSA-75c5-xw7c-p5pm, PYSEC-2026-1814
- Weaknesses: CWE-697
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

pyjwt is a JSON Web Token implementation in Python. An incorrect string comparison is run for `iss` checking, resulting in `"acb"` being accepted for `"_abc_"`. This is a bug introduced in version 2.10.0: checking the "iss" claim changed from `isinstance(issuer, list)` to `isinstance(issuer, Sequence)`. Since str is a Sequnce, but not a list, `in` is also used for string comparison. This results in `if "abc" not in "__abcd__":` being checked instead of `if "abc" != "__abc__":`. Signature checks are still present so real world impact is likely limited to denial of service scenarios. This issue has been patched in version 2.10.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- jpadilla pyjwt: = 2.10.0
- pyjwt_project pyjwt: 2.10.0
- pyjwt (PyPI): from 2.10.0 before 2.10.1

## Every score

- GitHub_M: CVSS:3.1 2.2 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 2.2 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 2.2 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-75c5-xw7c-p5pm> (exploit, vendor-advisory, web)
- <https://github.com/jpadilla/pyjwt/commit/1570e708672aa9036bc772476beae8bfa48f4131#diff-6893ad4a1c5a36b8af3028db8c8bc3b62418149843fc382faf901eaab008e380R366> (patch, web)
- <https://github.com/jpadilla/pyjwt/commit/33022c25525c1020869c71ce2a4109e44ae4ced1> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53861> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://pypi.org/project/pyjwt> (package)
- <https://github.com/advisories/GHSA-75c5-xw7c-p5pm> (advisory)

## Sources

- CVE List: [CVE-2024-53861](https://www.cve.org/CVERecord?id=CVE-2024-53861), CVE Terms of Use, modified 2024-12-02
- GitHub Advisory Database: [GHSA-75c5-xw7c-p5pm](https://github.com/advisories/GHSA-75c5-xw7c-p5pm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-53861](https://nvd.nist.gov/vuln/detail/CVE-2024-53861), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1814](https://osv.dev/vulnerability/PYSEC-2026-1814), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-53861 · Whole record: https://cve.day/CVE-2024-53861.json · Rebuilt by cve.day 2026-11-25T22:58:49.553Z
