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.
Published: 2026-12-02
Score: 7.5 High
EPSS: 1.2% Low
KEV: No
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No solution or workaround provided in the CVE record.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hfm2-66rr-3mcf JWTKit: Unauthenticated denial of service when parsing malicious JWT headers
History

Thu, 03 Dec 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Vapor
Vapor jwt-kit
Vendors & Products Vapor
Vapor jwt-kit

Thu, 03 Dec 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 02 Dec 2026 21:00:00 +0000

Type Values Removed Values Added
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.
Title JWTKit: Unauthenticated denial of service when parsing malicious JWT headers
Weaknesses CWE-681
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-12-03T14:56:18.104Z

Reserved: 2026-12-02T19:29:19.037Z

Link: CVE-2026-142550

cve-icon Vulnrichment

Updated: 2026-12-03T14:56:11.875Z

cve-icon NVD

Status : Received

Published: 2026-12-02T21:18:16.737

Modified: 2026-12-03T15:17:11.357

Link: CVE-2026-142550

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-03T20:12:56Z

Weaknesses