Skip to main content
EPSS 0.4%top 67%

CVE-2026-48526: CWE-287: Improper Authentication in jpadilla pyjwt

0
High
VulnerabilityCVE-2026-48526cvecve-2026-48526cwe-287cwe-347
Published: 05/28/2026 (05/28/2026, 15:09:09 UTC)
Source: CVE Database V5
Vendor/Project: jpadilla
Product: pyjwt

Description

PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, when the verifier is decoding JSON Web Tokens, while supporting both asymmetric and HMAC algorithms, the library does not validate use of JSON Web Keys in HMAC algorithm, allowing attacker to use the issuer public key as the secret key for HMAC algorithm. This vulnerability is fixed in 2.13.0.

CVSS v3.1

Score 7.4high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

jpadilla

pyjwt

Affected versions
<2.13.0
pyjwt
pkg:pypi/pyjwt
Affected versions
<2.13.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 14:43:28 UTC

Technical Analysis

PyJWT, a Python library for JSON Web Token implementation, prior to version 2.13.0, fails to properly validate the use of JSON Web Keys (JWK) in the HMAC algorithm while supporting both asymmetric and HMAC algorithms. This improper authentication validation allows an attacker to use the issuer's public key as the secret key for HMAC, enabling the forging of JWTs and potentially bypassing authentication. The vulnerability is identified as CWE-287 (Improper Authentication) and CWE-347 (Improper Verification of Cryptographic Signature). The issue is fixed in PyJWT version 2.13.0. Red Hat advisories confirm the vulnerability affects their products only if the specific non-standard verifier configuration is used.

Potential Impact

An attacker can forge JSON Web Tokens by exploiting the improper validation of JWK in the HMAC algorithm, leading to authentication bypass and unauthorized access. This can compromise confidentiality and integrity of applications relying on PyJWT for JWT verification. The CVSS v3.1 score is 7.4 (High), reflecting network attack vector, high attack complexity, no privileges required, no user interaction, and high impact on confidentiality and integrity.

Mitigation Recommendations

A fixed version of PyJWT (2.13.0) is available and should be applied to remediate this vulnerability. Red Hat has released updates addressing this issue in their packages. Users should upgrade to PyJWT 2.13.0 or later. If using Red Hat products, apply the relevant security updates provided by Red Hat. Avoid using non-standard verifier configurations that accept both symmetric and asymmetric algorithms without proper validation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-21T16:18:10.619Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-48526","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25902","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26206","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30089","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30088","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25928","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30076","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:28571","vendor":"Red Hat"}]

Threat ID: 6a186056e29bf47b500b42de

Added to database: 05/28/2026, 15:33:42 UTC

Last enriched: 08/14/2026, 14:43:28 UTC

Last updated: 09/13/2026, 22:12:43 UTC

Views: 122

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses