Skip to main content
VulnerabilityPublished

CVE-2026-142550: JWTKit · Unauthenticated denial of service when parsing malicious JWT headers

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

0
Compare
Authoritative record:CVE-2026-142550· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 5.8.0 soon.

Data as of 3 Dec 2026, 01:44 UTC

CVSS 3.1 base score
7.5High
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.17.5
Patch
Available – fixed in 5.8.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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 to JWTKit version 5.8.0 or later, where the issue is fixed by validating numeric values before converting from Double to Int. The fix ensures that values outside the valid Int range cause decoding errors instead of runtime crashes. No other mitigation is required as the vulnerability is addressed by the official patch.

Description

JWTKit versions prior to 5.8.0 contain a vulnerability where parsing a JWT header with an extremely large integer value causes a runtime crash. This occurs because the library converts JSON numbers from Double to Int without validating the range, leading to a Swift runtime trap. An attacker can exploit this by sending a malicious JWT header to cause an unauthenticated denial of service before signature verification.

References

Community reviews

Loading reviews…