Advisories for Swift/Github.com/Vapor/Jwt-Kit package

2026

JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)

X5CVerifier.verifyJWS() decodes ValidationTimePayload.signedDate before verifying the JWS signature and uses it as fixedExpiryValidationTime during X.509 certificate validation. Since signedDate originates from an unauthenticated payload, an attacker can backdate certificate validation and bypass certificate expiration if they possess the private key of an expired, previously trusted certificate.

JWTKit: Unauthenticated denial of service when parsing malicious JWT headers

JWTKit can crash while parsing a JWT header containing an extremely large integer value. When decoding header fields, the library parses JSON numbers as Double and converts integral values to Int without checking whether the value fits into the valid Int range. A header containing a value such as 1e300 causes a Swift runtime trap. Because JWT headers are parsed before signature verification, an attacker can crash the application by …

JWTKit: Missing aud validation in Apple/Google/Microsoft identity tokens can enable cross-client authentication bypass

AppleIdentityToken, GoogleIdentityToken, and MicrosoftIdentityToken validate a signed ID token's issuer and expiry, but do not validate that the aud claim is intended for the current application. This allows cross-client ID token reuse when an application relies on JWTKit's built-in vendor token verification as complete authentication. An attacker can obtain a legitimate Apple/Google/Microsoft ID token for an attacker-controlled OAuth/OIDC client and submit it to a different application using the same provider …