Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-142550

JWTKit: Unauthenticated denial of service when parsing malicious JWT headers

No exploitation reported by the sources we read.

  • Published2026-12-02
  • Fixed in5.8.0
  • WeaknessCWE-681

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

JWTKit is a Swift library for signing and verifying JSON Web Tokens. Prior to 5.8.0, JWTKeyCollection.verify() in Sources/JWTKit/JWTKeyCollection.swift parses the JWT header using JWTParser.parseHeader() in Sources/JWTKit/JWTParser.swift before selecting a signer and verifying the signature. During parsing, JWTHeaderField.init(from:) in Sources/JWTKit/JWTHeaderField.swift decodes JSON numbers as Double and converts integral values to Int without checking the representable range. A remote unauthenticated attacker can provide an extremely large integral header value that triggers a Swift runtime trap and crashes the application without a valid signature or knowledge of the signing key. This issue is fixed in version 5.8.0.

Timeline

dates in UTC
  1. 2026-12-0220:52CVE publishedCNA

Versions per branch

OSV
github.com/vapor/jwt-kit
BranchAffectedFixed in
5.8< 5.8.05.8.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • vapor jwt-kit
    Affected
    • = < 5.8.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-12-02

Fix

  1. Update github.com/vapor/jwt-kit to 5.8.0

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.17.52026-12-02
  • CNAweakness (CWE)CWE-6812026-12-02
  • NVDweakness (CWE)CWE-681read 2026-12-02
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2026-12-02

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-12-02
Last modified
2026-12-02
NVD status
Received
GitHub advisory
GHSA-hfm2-66rr-3mcf

Frequently asked questions

What is CVE-2026-142550?

JWTKit is a Swift library for signing and verifying JSON Web Tokens. Prior to 5.8.0, JWTKeyCollection.verify() in Sources/JWTKit/JWTKeyCollection.swift parses the JWT header using JWTParser.parseHeader() in Sources/JWTKit/JWTParser.swift before selecting a signer and verifying the signature. During parsing, JWTHeaderField.init(from:) in Sources/JWTKit/JWTHeaderField.swift decodes JSON numbers as Double and converts integral values to Int without checking the representable range. A remote unauthenticated attacker can provide an extremely large integral header value that triggers a Swift runtime trap and crashes the application without a valid signature or knowledge of the signing key. This issue is fixed in version 5.8.0.

Is CVE-2026-142550 actively exploited?

Active exploitation of CVE-2026-142550 has not been confirmed.

What is the CVSS score for CVE-2026-142550?

CVE-2026-142550 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Hear about the next vulnerability in your software

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record