Security Resilience

CVE-2024-53861

Pyjwt Project Pyjwt 2.10.0

Public PoC
Published
29 November 2024
Modified
22 September 2025
Patch / advisory
CVSS Score v3.1 2.2
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N
EPSS Score 0.0083 59th percentile
Risk Priority 24 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-53861 is a low-severity Incorrect Comparison (CWE-697) vulnerability in Pyjwt Project Pyjwt. Its CVSS base score is 2.2 (Low).

Operationally, ranked in the top 41% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and AC-25 (Reference Monitor) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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,…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-48522Same product: Pyjwt Project Pyjwt
CVE-2026-48524Same product: Pyjwt Project Pyjwt
CVE-2026-102275Same product: Pyjwt Project Pyjwt
CVE-2026-102271Same product: Pyjwt Project Pyjwt
CVE-2026-48523Same product: Pyjwt Project Pyjwt
CVE-2026-48526Same product: Pyjwt Project Pyjwt
CVE-2026-102267Same product: Pyjwt Project Pyjwt
CVE-2026-102272Same product: Pyjwt Project Pyjwt
CVE-2026-48525Same product: Pyjwt Project Pyjwt
CVE-2026-102266Same product: Pyjwt Project Pyjwt

Affected Assets

pyjwt project
pyjwt
2.10.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation directly exercises security-relevant comparisons to discover incorrect logic.

A reference monitor must be small and correct, structurally limiting the chance of flawed comparison logic in authorization decisions.

Security engineering principles require correct implementation of comparison logic used for access and authentication decisions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect incorrect comparison flaws before deployment.

prevents

Training raises developer awareness of common comparison pitfalls (wrong boolean operators, missing factors, non-constant-time checks, using attacker-controlled lengths), reducing a minority of instances, but the defect lives in the code itself and fallible human practice cannot prevent most of it.

prevents

Secure coding standards directly address avoiding incorrect comparison operators and logic.

prevents

A.8.30 carries secure coding practice (8.28) into the supplier relationship via contractual requirements, which reduces the incidence of implementation-phase code defects like incorrect comparisons, but the effect is mediated through a fallible human practice and the clause's own ceiling on this verb is partial.

finds

A.8.8's reach is disclosure-based (vendor advisories, CVE databases, vulnerability scanning of deployed components); CWE-697 is a code-level comparison defect in first-party code that A.8.8 does not read, and the class rarely surfaces as standalone published CVEs.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-697, a pillar-level weakness, and none of its children carries one either.

References