CVE-2026-142549
JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)
- Severity
- medium CVSS 4.9 (v3.1)
- Affects
- jwt-kit · vapor
- Weakness
- CWE-345: Insufficient Verification of Data Authenticity
- Published
- 2 December 2026 by GitHub_M
JWTKit is a Swift library for signing and verifying JSON Web Tokens. Prior to 5.8.0, X5CVerifier.verifyJWS() in Sources/JWTKit/X5C/X5CVerifier.swift reads ValidationTimePayload.signedDate, defined in Sources/JWTKit/X5C/ValidationTimePayload.swift, from the token payload before verifying the JWS signature. The verifier uses that unauthenticated date as fixedExpiryValidationTime for X.509 certificate validation. An attacker possessing the private key of an expired, previously trusted certificate can backdate the value and cause newly signed tokens to be accepted despite certificate expiration. This issue is fixed in version 5.8.0.
Our coverage
We have not written about this one. Know why it matters? Send a tip.