CyberRota Analysis
AI-GeneratedThe vulnerability affects PyJWT versions 2.4.0 to 2.14.0, where the HMACAlgorithm.prepare_key function improperly handles DER encoded public keys, allowing attackers to forge authenticated HMAC tokens if they possess the public key. This can lead to unauthorized access and manipulation of sensitive data in applications that improperly mix HMAC and asymmetric algorithms. Developers using affected versions of PyJWT should prioritize upgrading to version 2.14.0 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
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.
Related CVEs
Other vulnerabilities affecting the same vendor(s)