CVE-2026-48526: CWE-287: Improper Authentication in jpadilla pyjwt
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.
AI Analysis
Technical Summary
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.
CVE-2026-48526: CWE-287: Improper Authentication in jpadilla 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
Affected software
jpadilla
pyjwt
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.