Security mailing lists by PureSourceCode

CVE-2026-142551

HIGH 8.1CVSS 3.1

JWTKit: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.