Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade PyJWT to version 2.14.0 or higher.
PyJWT is a Python implementation of RFC 7519.
Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the _verify_signature method in jwt/api_jws.py when a PyJWK object is used to verify an HMAC-signed token. In the vulnerable code path, key.key is used directly without passing it through alg_obj.prepare_key(), which means the minimum HMAC key-length check is bypassed. An attacker can supply a weak or undersized HMAC key that would normally be rejected, potentially forging or accepting invalid signatures and compromising both confidentiality and integrity.
Note: This is only exploitable when a PyJWK object is passed directly to the verification call, as the minimum HMAC key-length check does not reject the key under the default configuration in that code path.