cvelo
P3 · MediumCVSS 4.9EPSS 0.2%

JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)

  • CVE-2026-142549
  • GHSA-pfgx-7g34-46fm
  • EUVD-2026-141866

Description

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • vapor jwt-kit

    Affected versionsFixed in
    < 5.8.0none stated
  • github.com/vapor/jwt-kitSwiftURL

    Affected versionsFixed in
    up to 5.7.1none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.