{"id":"CVE-2026-142551","summary":"JWTKit: Missing aud validation in Apple/Google/Microsoft identity tokens can enable cross-client authentication bypass","details":"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.","aliases":["GHSA-gxx9-vxm7-hgrq"],"modified":"2026-12-03T00:45:57.243749335Z","published":"2026-12-02T20:54:52.923Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-287","CWE-345"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142551.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142551.json"},{"type":"FIX","url":"https://github.com/vapor/jwt-kit/commit/a1551090db2a3bd86f0482622e2d201c199e75ad"},{"type":"WEB","url":"https://github.com/vapor/jwt-kit/releases/tag/5.8.0"},{"type":"ADVISORY","url":"https://github.com/vapor/jwt-kit/security/advisories/GHSA-gxx9-vxm7-hgrq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142551"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vapor/jwt-kit","events":[{"introduced":"484cb741f041dae2ba756e0400fb7f79707bde44"},{"fixed":"8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"},{"fixed":"a1551090db2a3bd86f0482622e2d201c199e75ad"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"4.0.0"},{"fixed":"5.8.0"}]},{"range":[{"fixed":"a1551090db2a3bd86f0482622e2d201c199e75ad"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"5.8.0","range":[{"fixed":"8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"}]}]}}],"versions":["5.7.1","5.7.0","5.6.0","5.5.0","5.4.1","5.4.0","5.3.0","5.2.0","5.1.2","5.1.1","5.1.0","5.0.1","5.0.0","5.0.0-rc.2","5.0.0-rc.1","5.0.0-beta.4","5.0.0-beta.3","4.13.2","5.0.0-beta.2.1","5.0.0-beta.2","5.0.0-beta.1","4.13.1","4.13.0","4.12.0","4.11.1","4.11.0","4.10.0","4.9.0","4.8.0","4.7.0","4.6.1","4.6.0","4.5.0","4.4.0","4.3.0","4.2.6","4.2.5","4.2.4","4.2.3","4.2.2","4.2.1","4.2.0","4.1.0","4.0.1","4.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142551.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}