{"id":"CVE-2026-142551","sourceIdentifier":"security-advisories@github.com","published":"2026-12-02T21:18:16.880","lastModified":"2026-12-03T00:18:07.333","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"vapor","product":"jwt-kit","versions":[{"version":">= 4.0.0, < 5.8.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-12-02T23:02:29.293545Z","id":"CVE-2026-142551","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-287"},{"lang":"en","value":"CWE-345"}]}],"references":[{"url":"https://github.com/vapor/jwt-kit/commit/a1551090db2a3bd86f0482622e2d201c199e75ad","source":"security-advisories@github.com"},{"url":"https://github.com/vapor/jwt-kit/releases/tag/5.8.0","source":"security-advisories@github.com"},{"url":"https://github.com/vapor/jwt-kit/security/advisories/GHSA-gxx9-vxm7-hgrq","source":"security-advisories@github.com"},{"url":"https://github.com/vapor/jwt-kit/security/advisories/GHSA-gxx9-vxm7-hgrq","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}