JWTKit fixes Apple, Google, and Microsoft OIDC bypass
Listen to Briefing
0:00/2:12

What happened.Vapor released `JWTKit 5.8.0` alongside three GitHub Security Advisories between `21:55 UTC` and `22:08 UTC` on December 2 fixing `CVE-2026-142551` (CVSS 3.1 `8.1 High`), `CVE-2026-142550` (`7.5 High`), and `CVE-2026-142549` (`4.9 Medium`).
Why it matters.Server-side Swift services using default Apple, Google, or Microsoft sign-in helpers accept tokens issued for unrelated apps and crash on malformed headers. Backend teams must upgrade `jwt-kit` to `5.8.0` and configure `expectedAudience` immediately.
The technical specifications:
- Audience bypass: In versions `4.0.0` through `5.7.1`, `AppleIdentityToken`, `GoogleIdentityToken`, and `MicrosoftIdentityToken` checked signatures, issuers, and expiry while skipping the `aud` claim.
- Cross-client replay: Attackers can take an ID token minted for their own OIDC client and log into another Swift app trusting the same provider keys.
- Pre-auth crash: `CVE-2026-142550` crashes servers before signature checks when `JWTHeaderField.init(from:)` converts a header number such as `1e300` from `Double` to `Int`.
- Expired certificate bypass: `CVE-2026-142549` lets holders of expired private keys backdate X.509 validation using an unauthenticated `signedDate` field in `X5CVerifier`.