In Connect2id Nimbus JOSE+JWT before 9.37.2, an attacker can cause a denial of service (resource consumption) via a large JWE p2c header value (aka iteration count) for the PasswordBasedDecrypter (PBKDF2) component.
https://connect2id.com/products/nimbus-jose-jwt
https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/526/
https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/3b3b77e