CVE Professor
/
All CVEs
CVE-2026-142550

CVE-2026-142550 — Github.com/vapor/jwt-kit — CWE-681

HIGH CVSS 7.5 ⚡ EPSS 1.2% GitHub

### Summary JWTKit can crash while parsing a JWT header containing an extremely large integer value. When decoding header fields, the library parses JSON numbers as Double and converts integral values to Int without checking whether the value fits into the valid Int range. A header containing a value such as 1e300 causes a Swift runtime trap. Because JWT headers are parsed before signature verification, an attacker can crash the application by sending a specially crafted JWT without requiring a valid signature. ### Details `JWTKeyCollection.verify()` parses the JWT header before selecting a signer and verifying the token signature. The header is decoded by `JWTParser.parseHeader()`, which deserializes the JSON into JWTHeader. During this process, `JWTHeaderField.init(from:)` decodes JSON numbers as Double and converts integral values to Int without validating that they fit within the representable Int range: ``` let doubleValue = try container.decode(Double.self) if doubleValue.truncatingRemainder(dividingBy: 1) == 0 { self = .int(Int(doubleValue)) } ``` An attacker can supply an extremely large integral value (for example, 1e300), causing the Int(doubleValue) conversion to trigger a Swift runtime trap. Because this occurs while parsing the JWT header, the application crashes before signature verification. Affected code: * Sources/JWTKit/JWTKeyCollection.swift (verify() - parseHeader()) * Sources/JWTKit/JWTParser.swift (parseHeader()) * Sources/JWTKit/JWTHeaderFie

### Summary JWTKit can crash while parsing a JWT header containing an extremely large integer value. When decoding header fields, the library parses JSON numbers as Double and converts integral values to Int without checking whether the value fits into the valid Int range. A header containing a value such as 1e300 causes a Swift runtime trap. Because JWT headers are parsed before signature verification, an attacker can crash the application by sending a specially crafted JWT without requiring a valid signature. ### Details `JWTKeyCollection.verify()` parses the JWT header before selecting a signer and verifying the token signature. The header is decoded by `JWTParser.parseHeader()`, which deserializes the JSON into JWTHeader. During this process, `JWTHeaderField.init(from:)` decodes JSON numbers as Double and converts integral values to Int without validating that they fit within the representable Int range: ``` let doubleValue = try container.decode(Double.self) if doubleValue.truncatingRemainder(dividingBy: 1) == 0 { self = .int(Int(doubleValue)) } ``` An attacker can supply an extremely large integral value (for example, 1e300), causing the Int(doubleValue) conversion to trigger a Swift runtime trap. Because this occurs while parsing the JWT header, the application crashes before signature verification. Affected code: * Sources/JWTKit/JWTKeyCollection.swift (verify() - parseHeader()) * Sources/JWTKit/JWTParser.swift (parseHeader()) * Sources/JWTKit/JWTHeaderFie

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
EPSS — Exploit Prediction Scoring System
1.2%
30-day probability
In the 69. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142550
CVSS 7.5/10 · HIGH · 02.12.2026
CWE: CWE-681
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary
JWTKit can crash while parsing a JWT header containing an extremely large integer value. When decoding header fields, the library parses JSON numbers as Double and converts integral values to Int without checking whether the value fits into the valid Int range. A header containing a value such as 1e300 causes a Swift runtime trap.
Affected: github.com/vapor/jwt-kit

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for github.com/vapor/jwt-kit.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-681
Affected Products (1)
github.com/vapor/jwt-kit
References & Advisories (4)
Related CVEs
9.4
CVE-2026-68548
## Summary Algernon's URL-prefix authorization gate matches its protected prefixes (`/admin`, `/repo`, `/data`
8.2
CVE-2026-145366
### Summary A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`
7.7
CVE-2026-145367
### Summary In ambient mode, `istiod` does not correctly convert the `trustDomains` and `notTrustDomains` sou
5.6
CVE-2026-145239
### Summary `AuthorizationPolicy` `source.ipBlocks`, `source.notIpBlocks` and the `source.ip` condition on am
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s
9.2
CVE-2026-144598
Homebox 0.22.0-rc.2 through 0.27.1 contains an authentication bypass vulnerability in UserService.LoginOIDC th