CVE-2026-142551
HIGH 8.1CVSS 3.1JWTKit: Missing aud validation in Apple/Google/Microsoft identity tokens can enable cross-client authentication bypass
JWTKit is a Swift library for signing and verifying JSON Web Tokens. From 4.0.0 until 5.8.0, JWTSigner.verify() in Sources/JWTKit/JWTSigner.swift invokes payload verification after validating the JWS signature, but AppleIdentityToken, GoogleIdentityToken, and MicrosoftIdentityToken in Sources/JWTKit/Vendor/AppleIdentityToken.swift, Sources/JWTKit/Vendor/GoogleIdentityToken.swift, and Sources/JWTKit/Vendor/MicrosoftIdentityToken.swift do not validate the aud claim against the application's intended audience. An attacker can obtain a legitimate provider-issued ID token for an attacker-controlled OAuth or OIDC client and submit it to a different application using the same provider keys. If that application relies on the built-in verification as its authentication decision without a separate audience.verifyIntendedAudience(...) check, the token can be accepted despite being intended for another client. Depending on the application's identity mapping, the resulting cross-client token reuse can enable authentication bypass or account takeover. Applications that independently validate the intended audience are not affected through this issue. This issue is fixed in 5.8.0.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-287CWE-345
- Also known as
- GHSA-gxx9-vxm7-hgrq
- Sources
- NVDJSONCVE ListJSONOSV GHSA-gxx9-vxm7-hgrqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| CVE List | GitHub_M | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | vapor | jwt-kit | = >= 4.0.0, < 5.8.0 | |
| OSV | SwiftURL | github.com/vapor/jwt-kit | >= 4.0.0, < 5.8.0 | 5.8.0 |
References
- https://github.com/vapor/jwt-kit/commit/a1551090db2a3bd86f0482622e2d201c199e75ad · x_refsource_MISC, WEB
- https://github.com/vapor/jwt-kit/releases/tag/5.8.0 · x_refsource_MISC, WEB
- https://github.com/vapor/jwt-kit/security/advisories/GHSA-gxx9-vxm7-hgrq · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142551 · ADVISORY
- https://github.com/vapor/jwt-kit · PACKAGE
History
- 3 Dec 2026 00:30 UTC · NVD: 1 reference added
- 2 Dec 2026 23:30 UTC · CVE List: updated (other details)
- 2 Dec 2026 22:21 UTC · OSV: first stored (published 2 Dec 2026)
- 2 Dec 2026 21:25 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 21:25 UTC · CVE List: first stored (published 2 Dec 2026)