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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-29 · Modified: 2024-12-02
- Aliases: GHSA-75c5-xw7c-p5pm, PYSEC-2026-1814, CGA-759c-h76v-vcfh, CGA-h7hf-2qwj-v2jv, CGA-j9wf-3cvq-rr9c, CGA-m2q3-9hfv-9rqg, CGA-r4pw-7q2c-f697, CGA-rfmr-2gmm-9vc2, openSUSE-SU-2024:14540-1, CGA-26r6-446h-p38v, CGA-fgvc-v4w2-3gf8, CGA-w22r-xqc7-54rr, CGA-xp7r-669p-2h2j
- Record: https://cvemate.com/vulnerability/CVE-2024-53861 · JSON: https://cvemate.com/vulnerability/CVE-2024-53861/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.832%, percentile 58.884%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard az (Chainguard): \< 2.67.0-r1
- chainguard az-iamguarded-compat (Chainguard): \< 2.67.0-r1
- chainguard barman (Chainguard): \< 3.12.1-r0
- chainguard barman-cloudnative-pg (Chainguard): \< 3.12.1-r0
- chainguard py3-pyjwt (Chainguard): \< 2.10.1-r0
- wolfi az (Wolfi): \< 2.67.0-r1
- wolfi az-iamguarded-compat (Wolfi): \< 2.67.0-r1
- wolfi py3-pyjwt (Wolfi): \< 2.10.1-r0
- jpadilla pyjwt: = 2.10.0
- pyjwt\_project pyjwt: 2.10.0
- PyPI pyjwt (PyPI): ≥ 2.10.0, \< 2.10.1
- opensuse python-PyJWT&distro=openSUSE Tumbleweed (openSUSE): \< 2.10.1-1.1

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-75c5-xw7c-p5pm>
- <https://github.com/jpadilla/pyjwt/commit/1570e708672aa9036bc772476beae8bfa48f4131#diff-6893ad4a1c5a36b8af3028db8c8bc3b62418149843fc382faf901eaab008e380R366>
- <https://github.com/jpadilla/pyjwt/commit/33022c25525c1020869c71ce2a4109e44ae4ced1>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53861>
- <https://github.com/jpadilla/pyjwt>
- <https://pypi.org/project/pyjwt>
- <https://github.com/advisories/GHSA-75c5-xw7c-p5pm>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53861.json>
- <https://www.suse.com/security/cve/CVE-2024-53861>

---

Data as of 2026-12-05T10:27:57.015Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
