JWTKit versions prior to 5.8.0 contain a vulnerability where parsing a JWT header with an extremely large integer value causes a runtime crash. This occurs because the library converts JSON numbers from Double to Int without validating the range, leading to a Swift runtime trap. An attacker can exploit this by sending a malicious JWT header to cause an unauthenticated denial of service before signature verification.