Bug 2542687 (CVE-2026-102271) - CVE-2026-102271 pyjwt: PyJWT: Authentication bypass via acceptance of DER public keys as HMAC secrets
Summary: CVE-2026-102271 pyjwt: PyJWT: Authentication bypass via acceptance of DER pub...
Keywords:
Status: NEW
Alias: CVE-2026-102271
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-28 20:46 UTC by OSIDB Bzimport
Modified: 2026-09-28 20:52 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-28 20:46:14 UTC
PyJWT is a Python implementation of JSON Web Token standards. From 2.4.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because asymmetric-key guard relies on textual markers that are absent from DER encoding. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a DER public key as the shared verification key. As a result, PyJWT uses public DER bytes as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.


Note You need to log in before you can comment on or make changes to this bug.