CVE-2024-53861: 
Python vulnerability analysis and mitigation

Overview

PyJWT, a JSON Web Token implementation in Python, was found to have an incorrect string comparison vulnerability (CVE-2024-53861) in version 2.10.0. The issue was discovered and disclosed on November 28, 2024, affecting the issuer ('iss') claim verification functionality. The vulnerability allows partial string matches to be incorrectly accepted, where 'acb' could be accepted for 'abc' due to an improper string comparison method (GitHub Advisory).

Technical details

The vulnerability was introduced when the issuer claim verification changed from using isinstance(issuer, list) to isinstance(issuer, Sequence). Since str is a Sequence but not a list, the 'in' operator was used for string comparison instead of the equality operator. This resulted in checking if 'abc' not in '__abcd__' instead of if 'abc' != '__abc__'. The issue has been assigned a CVSS v3.1 score of 2.2 (Low) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N (GitHub Advisory).

Impact

The real-world impact of this vulnerability is considered limited due to the requirement that signature checks must still be valid. While the incorrect string comparison could allow for unintended issuer validation matches, the overall security impact is mitigated by the JWT signature verification mechanism remaining intact (GitHub Advisory).

Exploitability

The vulnerability can be demonstrated using a proof of concept where a token with issuer 'urn:' would be incorrectly accepted when the expected issuer is 'urn:expected'. However, exploitation requires high attack complexity and high privileges, as indicated by the CVSS score (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in PyJWT version 2.10.1. All users are advised to upgrade to this version. There are no known workarounds for this vulnerability other than upgrading to the patched version (NVD).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

pyjwt

Fixed

bullseye

pyjwt

Fixed

sid

pyjwt

Fixed

trixie

pyjwt

Fixed

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-108258MEDIUM6.9
  • Python logoPython
  • shiny
NoYesOct 09, 2026
CVE-2026-48484MEDIUM6.5
  • Python logoPython
  • pyload-ng
NoYesOct 09, 2026
GHSA-p3pr-8f3m-4qp8MEDIUM6.4
  • Python logoPython
  • pyload-ng
NoNoOct 09, 2026
CVE-2026-107841MEDIUM5.7
  • Python logoPython
  • pacioli-guard
NoYesOct 09, 2026
CVE-2026-75597MEDIUM5.3
  • Python logoPython
  • pyload-ng
NoYesOct 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management