Home › CVE › Vulnerabilities
CVE-2026-142550 — vapor jwt-kit
One of 3 vapor jwt-kit vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesResearch article
JWTKit Library Vulnerability Allows Remote Crash via Numeric Conversion
| CVE | CVE-2026-142550 |
|---|---|
| Vendor and product | vapor jwt-kit |
| Published | December 03, 2026 22:10 UTC |
| Research cut-off | December 03, 2026 21:55 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-12-03); CISA KEV catalog; GitHub advisory (2026-12-02); FIRST EPSS (2026-12-03) |
Executive summary
The JWTKit library for Swift has a vulnerability that enables remote attackers to crash applications without valid credentials [1]. The CVSS 3.1 score is 7.5 HIGH, scored by security-advisories@github.com [1]. Affected versions are prior to 5.8.0 [1]. The reviewed sources do not report exploitation [2]. The main action is to update to the fixed version 5.8.0 [1].
Key points
- The vulnerability allows remote attackers to crash an application without valid credentials [1].
- The CVSS 3.1 score is 7.5 HIGH, scored by security-advisories@github.com [1].
- The affected versions are prior to 5.8.0 [1].
- The reviewed sources do not report exploitation [2].
- The main action is to update to the fixed version 5.8.0 [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-142550 | vapor | jwt-kit | CWE-681 | 7.5 HIGH, scored by security-advisories@github.com [1] | 2026-12-02T21:18:16 | 2026-12-03T15:17:11 | Received |
Vulnerability description
A flaw in the JWTKit library allows a remote attacker to cause an application crash by sending a specially crafted JSON Web Token header. The issue arises during the parsing of numeric values in the header, which can lead to a Swift runtime trap when handling very large integers [1]. This vulnerability is resolved in version 5.8.0 [1].
Attack surface and exploitation prerequisites
The attack requires network access to the application, as the flaw is triggered by a remote request. No user interaction is needed, and the attacker does not need any prior authentication to exploit this vulnerability [1]. According to the CVSS vector, the attack is possible over the network with low access complexity and no privileges required [1].
Impact analysis
This flaw impacts system availability since it enables the app to crash even when there's no valid signature or awareness of the signing key [1]. The CVSS vector indicates no impact on confidentiality or integrity, but a high impact on availability [1].
Affected products and versions
| Affected Product | Affected Version | Fixed Version |
|---|---|---|
| vapor jwt-kit | < 5.8.0 | 5.8.0 [1] |
Exploitation and threat intelligence status
CVE-2026-142550 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-03 [2]. The EPSS score for this vulnerability is 1.19%, indicating a low probability of exploitation in the next 30 days [4].
Detection and exposure assessment
Organizations should check if they are using any version of vapor jwt-kit prior to 5.8.0, as this is the affected range [1]. The reviewed sources do not describe detection steps for this vulnerability.
Remediation
The vulnerability is fixed in version 5.8.0 of the jwt-kit library [1]. Organizations should update to this version to address the issue [1].
Remediation checklist
- Update to version 5.8.0 of the jwt-kit library [1].
- Verify that all dependent projects are using the fixed version (general guidance, not from the sources).
- Monitoring for unusual crashes related to JWT processing is general defensive guidance, not stated in the sources.
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe the attack lifecycle or scenarios.
- The sources do not provide indicators of compromise.
- The sources do not list any mitigations beyond updating to the fixed version.
References
- CVE-2026-142550 record. NIST National Vulnerability Database (NVD), 2026-12-03. https://nvd.nist.gov/vuln/detail/CVE-2026-142550. Accessed 2026-12-03.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-03. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-03.
- GHSA-hfm2-66rr-3mcf. GitHub Security Advisory Database, 2026-12-02. https://github.com/advisories/GHSA-hfm2-66rr-3mcf. Accessed 2026-12-03.
- EPSS score for CVE-2026-142550. FIRST, 2026-12-03. https://api.first.org/data/v1/epss?cve=CVE-2026-142550. Accessed 2026-12-03.
Summary
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.
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-681: Incorrect Conversion between Numeric Types
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/vapor/jwt-kit (Swift) | ≤ 5.7.1 | 5.8.0 |
| vapor jwt-kit | < 5.8.0 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/vapor/jwt-kit/commit/a87b6f52efa0bf47f4925d52380e4f2d8346c003
- github.com/vapor/jwt-kit/releases/tag/5.8.0
Other references
Affected
- vapor jwt-kit
Frequently asked questions
What is CVE-2026-142550?
The JWTKit library for Swift has a vulnerability that enables remote attackers to crash applications without valid credentials. The CVSS 3.1 score is 7.5 HIGH, scored by security-advisories@github.com. Affected versions are prior to 5.8.0. The reviewed sources do not report exploitation. The main action is to update to the fixed version 5.8.0. Weakness type: Incorrect Conversion between Numeric Types (CWE-681).
How severe is CVE-2026-142550?
CVE-2026-142550 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-142550 being exploited?
Not as far as is known: CVE-2026-142550 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 1.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142550?
github.com/vapor/jwt-kit (Swift) ≤ 5.7.1 (fixed in 5.8.0); vapor jwt-kit < 5.8.0.
How do I fix CVE-2026-142550?
Update to version 5.8.0 of the jwt-kit library. Verify that all dependent projects are using the fixed version (general guidance, not from the sources). Monitoring for unusual crashes related to JWT processing is general defensive guidance, not stated in the sources.