Closed amolinaalvarez closed 3 weeks ago
Of course! Can you make a PR?
Hi 👋
I opened a PR that I think would handle this case.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
In
cryptography
42.x.x
, this library introduces a new parsing validation that raises aValueError
whenload_pem_public_key
is called with an invalidPEM
. This affects theJWS
decode function, asPyJWT
does not currently handle this exception. Does it make sense to address this scenario?PyJWT
unmanaged exception point: https://github.com/jpadilla/pyjwt/blob/12420204cfef8fea7644532b9ca82c0cc5ca3abe/jwt/algorithms.py#L346cryptography
new validation: https://github.com/pyca/cryptography/blob/b507701ab4c14c345fd036c20ec7b95dae78c1a4/src/rust/src/error.rs#L12Thank you.