Skip to main content
CVE-2026-142549VulnerabilityPublished

github.com/vapor/jwt-kit · JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)

Affects github.com/vapor/jwt-kitSource GCVE Database

0
Compare
Authoritative record:CVE-2026-142549· Medium 4.9

Not known to be exploited · CVSS 4.9 Medium : upgrade to 5.8.0 when convenient.

Data as of 3 Dec 2026, 01:44 UTC

CVSS 3.1 base score
4.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.14.9
Patch
Available – fixed in 5.8.0
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.

What to do

Upgrade github.com/vapor/jwt-kit to 5.8.0.

Affected software

ProductAffectedFixed in
SwiftURLgithub.com/vapor/jwt-kitAffected
  • <5.8.0
Fixed in
  • 5.8.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade JWTKit to version 5.8.0 or later, where this vulnerability is fixed. The fix involves not using the signedDate from the unauthenticated JWT payload for certificate validation time. Instead, the certificate chain should be validated using the current time or another trusted source. Only after successful JWS signature verification should the signedDate be trusted. This prevents untrusted input from influencing certificate validation decisions.

Description

JWTKit versions prior to 5.8.0 contain a vulnerability where the X.509 certificate validation time is derived from an unauthenticated JWT payload field named signedDate. This allows an attacker who possesses the private key of an expired certificate to backdate the validation time, bypassing certificate expiration checks and causing the system to accept JWTs signed with expired certificates.

References

Community reviews

Loading reviews…