{"affected":[{"product":"jwt-kit","source":"CNA: GitHub_M","vendor":"vapor","versions":[{"status":"affected","version":">= 4.0.0, < 5.8.0"}]}],"cveId":"CVE-2026-142551","cwes":["CWE-287","CWE-345"],"description":"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.1,"severity":"high","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}],"modifiedAt":1796244892923,"publishedAt":1796244892923,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/vapor/jwt-kit/security/advisories/GHSA-gxx9-vxm7-hgrq"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/vapor/jwt-kit/commit/a1551090db2a3bd86f0482622e2d201c199e75ad"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/vapor/jwt-kit/releases/tag/5.8.0"}],"remediation":[],"revision":"5d81ae49acad38b4284525908ea399fee8fab3708b6de8547b9c012beed9c290","sources":[{"modifiedAt":1796244892923,"name":"CNA: GitHub_M","retrievedAt":1796245786289,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142551"}],"ssvc":null,"status":"published","title":"JWTKit: Missing aud validation in Apple/Google/Microsoft identity tokens can enable cross-client authentication bypass","updatedAt":1796245786289}