JWTKit: Missing aud validation in Apple/Google/Microsoft identity tokens can enable cross-client authentication bypass
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…
Assessment
- CVSS
- 8.1 (v3.1)
- Severity
- High
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 2 December 2026
- Last updated
- 2 December 2026
- Affected
- vapor · jwt-kit · github.com/vapor/jwt-kit
- Weakness
- CWE-287, CWE-345
- Assigner
- GitHub_M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
At the source
References
- https://github.com/vapor/jwt-kit/security/advisories/GHSA-gxx9-vxm7-hgrq
- https://nvd.nist.gov/vuln/detail/CVE-2026-142551
- https://github.com/vapor/jwt-kit/commit/a1551090db2a3bd86f0482622e2d201c199e75ad
- https://github.com/vapor/jwt-kit/releases/tag/5.8.0
- https://github.com/advisories/GHSA-gxx9-vxm7-hgrq
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-142551