Multiple security vulnerabilities have been identified in JWTKit, a Swift library for JSON Web Token handling. The issues affect token validation, certificate validation, and header parsing, and can enable authentication bypass, certificate expiration bypass, or denial of service. Affected versions include releases up to 5.7.1, with one issue also affecting versions 4.0.0 through 5.7.1. The overall risk is significant for applications that rely on the library for identity-provider login, X.509-based verification, or untrusted token processing.
CVE-2026-142551 (CVSS 8.1 — High): The built-in identity-provider token verification does not validate the audience claim, so a token issued for a different client can be accepted by an application using the same provider. An attacker can obtain a legitimate token for an attacker-controlled client and submit it to another application, potentially causing authentication bypass or account takeover.[/subscribe_to_unlock_form]
Multiple security vulnerabilities have been identified in JWTKit, a Swift library for JSON Web Token handling. The issues affect token validation, certificate validation, and header parsing, and can enable authentication bypass, certificate expiration bypass, or denial of service. Affected versions include releases up to 5.7.1, with one issue also affecting versions 4.0.0 through 5.7.1. The overall risk is significant for applications that rely on the library for identity-provider login, X.509-based verification, or untrusted token processing.
CVE-2026-142551 (CVSS 8.1 — High): The built-in identity-provider token verification does not validate the audience claim, so a token issued for a different client can be accepted by an application using the same provider. An attacker can obtain a legitimate token for an attacker-controlled client and submit it to another application, potentially causing authentication bypass or account takeover.[emaillocker id="1283"]
CVE-2026-142549 (CVSS 4.9 — Medium): The X.509 certificate validation process uses a signed date from the unauthenticated JWT payload before verifying the token signature. An attacker who controls the private key of an expired trusted certificate can set that date to an earlier valid period and bypass certificate expiration.
CVE-2026-142550 (CVSS 7.5 — High): JWT header parsing converts large numeric values to an integer without checking the valid range, causing a runtime crash. A remote unauthenticated attacker can send a specially crafted JWT with an oversized header value and cause denial of service before signature verification occurs.
These vulnerabilities collectively present a serious risk to applications that use the library for authentication, certificate validation, or processing untrusted tokens. The most exposed deployments are those that accept identity-provider tokens, rely on X.509-based verification, or expose token parsing to unauthenticated input. Affected deployments should prioritize review of the affected verification and parsing paths.
We recommend you to update vapor/jwt-kit to version 5.8.0.
The following reports contain further technical details:
[/emaillocker]