CVE-2026-142551
### Summary `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 keys. JWTKit accepts the token even though its `aud` identifies the attacker's client, not the victim application. The exact account-level impact depends on how the application maps provider identities, but the security boundary is already broken once a token issued for another relying party is accepted as a verified login token. ### Details `JWTSigner.verify()` verifies the JWS signature and then automatically calls the payload's `verify(using:)` method: - `Sources/JWTKit/JWTSigner.swift:33-39` ```swift guard try algorithm.verify(signature, signs: data) else { throw JWTError.signatureVerificationFailed } let (_, payload, _) = try parser.parse(token, as: Payload.self) try await payload.verify(using: algorithm) ``` For the vendor ID token payload types, `verify(using:)` does not check `audience`: - `Sources/JWTKit/Vendor/AppleIdentityToken.swift:85-90` checks only `iss` and `exp` - `Sources/JWTKit/Vendor/GoogleIdentityToken.swift:139-148` checks only `iss`, `sub` length, and `exp` - `Sources/JWTKit/Vendor/MicrosoftIdentityToken.swift:149-158` checks only `tid`/`iss` consistency and `exp` The audience fields are decoded and documented as security-relevant, but are never enforced: - Apple: `audience` is documented as the application's `client_id` - Google: `audience` is documented as one of the application's OAuth client IDs - Microsoft: `audience` is documented as the app's Application ID, with a comment saying: "Your app shou
Properties
- Severity
- high
- Summary
- JWTKit: Missing aud validation in Apple/Google/Microsoft identity tokens can enable cross-client authentication bypass
- Nvd fetched at
- 2026-12-04T15:00:48.841578+00:00
- Epss score
- 0.00449
- Cvss severity
- HIGH
- Cvss score
- 8.1
- Retrieved at
- 2026-12-04T15:02:58+00:00
- Ghsa published
- 2026-12-02T21:55:43Z
- Source url
- https://github.com/advisories/GHSA-gxx9-vxm7-hgrq
- Ghsa updated
- 2026-12-02T21:55:44Z
- Ghsa id
- GHSA-gxx9-vxm7-hgrq
- Last source
- FIRST EPSS
- Score
- 8.1
- Cvss version
- 3.1
- Cve id
- CVE-2026-142551
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- First seen by Signal
- 2026-12-02T22:45:38+00:00
- Name
- CVE-2026-142551
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph