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 applicationsThere is no fixed version for python-jose.
Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature in the HMAC secret guard of jose/backends/native.py, which rejects a key only when is_pem_format(key) or is_ssh_key(key) holds and so never catches DER-encoded (binary SubjectPublicKeyInfo) public keys. An attacker can forge HS256 tokens that verify as valid by encoding the service's RSA or EC public key in DER form and using it as the HMAC secret. This requires the server to pass its public key to decode as raw DER bytes, which is the narrowing factor, since PEM is now blocked and a typed RSAKey/JWK object never reaches this constructor, leaving only the subset of servers that feed raw DER (for example a .der/.cer file or public_bytes(Encoding.DER, ...)). It also requires the server not to pin to asymmetric algorithms, since algorithms=None or omitted performs no allowlist check (jws.py:258 filters only when algorithms is not None) while algorithms=["RS256"] rejects the forgery before the key matters, and a list containing both RS256 and HS256 stays exploitable.
This vulnerability can be avoided by passing an explicit algorithms allowlist to the verification call that excludes HMAC algorithms, for example algorithms=["RS256"], so a public key cannot be used as an HMAC secret.
Note: This is a bypass of the fix for the vulnerability described in CVE-2024-33663.