cve.bz

CVE-2024-53861 pyjwt project pyjwt: Incorrect Comparison

7.5 highExploit referenceEPSS 0.8%Fix available

High (7.5) in pyjwt project pyjwt. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in pyjwt 2.10.1.

On this page
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.

Severity

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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-12-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-697 Incorrect Comparison
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-53861 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-53861?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-53861?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-53861 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pyjwt_project:pyjwt2.10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-75c5-xw7c-p5pmPyPIpyjwt>=2.10.0 <2.10.12.10.1
PYSEC-2026-1814PyPIpyjwt>=2.10.0 <2.10.12.10.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Micro 6.1python-PyJWT2.12.1-slfo.1.1_1.1SUSE-SU-2026:20879-1
openSUSETumbleweedpython-PyJWT2.10.1-1.1openSUSE-SU-2024:14540-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-service-api-rhel9Not affected
Red Hat Ansible Automation Platform 1.2ansible-towerNot affected
Red Hat Ansible Automation Platform 2aap-cloud-metrics-collector-containerNot affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-dellemc-openmanage-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-supported-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/platform-resource-runner-rhel8Not affected
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Ansible Automation Platform 2python3.11-pyjwtNot affected
Red Hat Ansible Automation Platform 2python3x-pyjwtNot affected
Red Hat Ansible Automation Platform 2python-pyjwtNot affected
Red Hat Enterprise Linux 10fence-agentsNot affected
Red Hat Enterprise Linux 9fence-agentsNot affected
Red Hat Quay 3quay/quay-rhel8Not affected
Red Hat Satellite 6python-pyjwtNot affected
Red Hat Satellite 6satellite-capsule:el8/python-pyjwtNot affected
Red Hat Satellite 6satellite:el8/python-pyjwtNot affected
Red Hat Update Infrastructure 4 for Cloud Providerspython-pyjwtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-53861.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-697 (29).

References

Check your stackJSON