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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2026-12-0220:52CVE publishedCNA
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.8 | < 5.8.0 | 5.8.0 | OSV |
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-kitAffected
- = < 5.8.0no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-12-02
Fix
- 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
- GHSA-hfm2-66rr-3mcfsame flawGitHub Advisory Database · CC-BY-4.0
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?
Is CVE-2026-142550 actively exploited?
What is the CVSS score for CVE-2026-142550?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-129243KEVsame weekGeoServer: Service security rules bypassed with a prefixed service name such as x/WFS
- CVE-2026-120705KEVsame weekGeoServer: Unauthenticated WFS GetFeatureById XML injection
- CVE-2026-138436same weekTRENDnet TEW-824DRU ssi os command injection
- CVE-2026-138356same weekD-Link DMS-3130/DXS-3130 369_copyfile.lua os command injection
- CVE-2026-138417same week
- CVE-2026-138355same weekD-Link R95 DHMAPI SOAP ssi SetTriggerPPPoEValidate os command injection
- CVE-2026-138416same week
- CVE-2026-138392same week
Sources for this record
- CVE Program · CVE Program Terms of Use
- GitHub Advisory Database · CC-BY-4.0 · GHSA-hfm2-66rr-3mcf
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served